Commit 4608cd95 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

libmdb: Fix P_INVALID when pgno_t != unsigned long

parent 3e3c7850
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment