mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 01:44:13 +08:00
mdbx: fix gcc 'comparison is always true' warning.
This commit is contained in:
parent
3fa09a9937
commit
88ea2768f5
@ -510,8 +510,7 @@ static __inline pgno_t NODEPGNO(const MDBX_node *node) {
|
||||
|
||||
/* Set the page number in a branch node */
|
||||
static __inline void SETPGNO(MDBX_node *node, pgno_t pgno) {
|
||||
if (sizeof(pgno_t) > 4)
|
||||
assert(pgno <= UINT64_C(0xffffFFFFffff));
|
||||
assert(pgno <= (pgno_t)UINT64_C(0xffffFFFFffff));
|
||||
|
||||
if (UNALIGNED_OK) {
|
||||
if (sizeof(pgno_t) > 4)
|
||||
|
Loading…
x
Reference in New Issue
Block a user