---

 user/test/ileaf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN user/test/ileaf.c~ileaf-split-use-entries_per_leaf user/test/ileaf.c
--- tux3/user/test/ileaf.c~ileaf-split-use-entries_per_leaf     2008-10-16 
01:20:43.000000000 +0900
+++ tux3-hirofumi/user/test/ileaf.c     2008-10-16 01:20:43.000000000 +0900
@@ -193,7 +193,7 @@ tuxkey_t ileaf_split(BTREE, tuxkey_t inu
                *(destdict - i) -= split;
 #ifdef SPLIT_AT_INUM
        /* round down to multiple of 64 above ibase */
-       inum_t round = inum & ~0x3fULL;
+       inum_t round = inum & ~(inum_t)(btree->entries_per_leaf - 1);
        dest->ibase = round > leaf->ibase + leaf->count ? round : inum;
 #else
        dest->ibase = leaf->ibase + at;
_

_______________________________________________
Tux3 mailing list
[email protected]
http://tux3.org/cgi-bin/mailman/listinfo/tux3

Reply via email to