projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e3c785
)
libmdb: Fix P_INVALID when pgno_t != unsigned long
author
Hallvard Furuseth
<hallvard@openldap.org>
Wed, 29 Aug 2012 04:43:35 +0000
(06:43 +0200)
committer
Hallvard Furuseth
<hallvard@openldap.org>
Wed, 29 Aug 2012 04:43:35 +0000
(06:43 +0200)
libraries/libmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/libmdb/mdb.c
b/libraries/libmdb/mdb.c
index
e3ad1c4
..
6be2103
100644
(file)
--- 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))