mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
libmdb: Fix P_INVALID when pgno_t != unsigned long
This commit is contained in:
parent
3e3c785034
commit
4608cd9552
@ -342,7 +342,7 @@ static txnid_t mdb_debug_start;
|
|||||||
/** An invalid page number.
|
/** An invalid page number.
|
||||||
* Mainly used to denote an empty tree.
|
* 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. */
|
/** Test if a flag \b f is set in a flag word \b w. */
|
||||||
#define F_ISSET(w, f) (((w) & (f)) == (f))
|
#define F_ISSET(w, f) (((w) & (f)) == (f))
|
||||||
|
Loading…
Reference in New Issue
Block a user