patch 180-slowmap-fallback from Nirgal Vourgère

This commit is contained in:
Brian Bruns
2010-11-01 09:26:46 -04:00
parent 5ac44b69d9
commit 85be8bbe68
4 changed files with 38 additions and 15 deletions

View File

@@ -48,7 +48,7 @@ unsigned char *map_buf;
if (map_buf[0]==0)
while (map_buf[map_sz]==0xff) map_sz--;
while (pgnum = mdb_map_find_next(mdb, map_buf, map_sz, pgnum)) {
while ((pgnum = mdb_map_find_next(mdb, map_buf, map_sz, pgnum))>0) {
printf("%6lu ",(long unsigned) pgnum);
if (coln==10) {
printf("\n");