mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:14:12 +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 */
|
/* 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user