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