mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:44:13 +08:00
mdbx: fix assert-condition inside mdbx_pnl_xappend().
Change-Id: Id5ac89c85b7e673c44d60a626c805fe666d221bc
This commit is contained in:
parent
e0fcd6e0ec
commit
b4fd29a67b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user