mdbx: fix assert-condition inside mdbx_pnl_xappend().

Change-Id: Id5ac89c85b7e673c44d60a626c805fe666d221bc
This commit is contained in:
Leonid Yuriev 2018-08-10 09:36:03 +03:00
parent e0fcd6e0ec
commit b4fd29a67b

View File

@ -536,7 +536,7 @@ static void mdbx_txl_free(MDBX_TXL list) {
/* Append ID to PNL. The PNL must be big enough. */
static __inline void mdbx_pnl_xappend(MDBX_PNL pl, pgno_t id) {
assert(pl[0] + (size_t)1 < MDBX_PNL_ALLOCLEN(pl));
assert(pl[0] + (size_t)1 <= MDBX_PNL_ALLOCLEN(pl));
pl[pl[0] += 1] = id;
}