mdbx: fix gcc 'comparison is always true' warning.

This commit is contained in:
Leo Yuriev 2017-05-23 22:31:07 +03:00
parent 3fa09a9937
commit 88ea2768f5

View File

@ -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)