This failed to index for keys greater than 32 bits.
Signed-off-by: Barret Rhoden <[email protected]>
---
kern/src/radix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kern/src/radix.c b/kern/src/radix.c
index ee15ad222868..6fe6d1d9acc4 100644
--- a/kern/src/radix.c
+++ b/kern/src/radix.c
@@ -72,7 +72,7 @@ int radix_insert(struct radix_tree *tree, unsigned long key,
void *item,
tree->root = r_node;
r_node->my_slot = &tree->root;
tree->depth++;
- tree->upper_bound = 1 << (LOG_RNODE_SLOTS * tree->depth);
+ tree->upper_bound = 1ULL << (LOG_RNODE_SLOTS * tree->depth);
}
assert(tree->root);
/* the tree now thinks it is tall enough, so find the last node, insert
in
--
2.8.0.rc3.226.g39d4020
--
You received this message because you are subscribed to the Google Groups
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.