From: Hallvard Furuseth Date: Wed, 29 Aug 2012 04:43:35 +0000 (+0200) Subject: libmdb: Fix P_INVALID when pgno_t != unsigned long X-Git-Tag: OPENLDAP_REL_ENG_2_4_33~25^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4608cd955250c9ebb0eed62d220577b93acba39e;p=openldap libmdb: Fix P_INVALID when pgno_t != unsigned long --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index e3ad1c4642..6be21035b7 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -342,7 +342,7 @@ static txnid_t mdb_debug_start; /** An invalid page number. * Mainly used to denote an empty tree. */ -#define P_INVALID (~0UL) +#define P_INVALID (~(pgno_t)0) /** Test if a flag \b f is set in a flag word \b w. */ #define F_ISSET(w, f) (((w) & (f)) == (f))