summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree.c b/tree.c
index 0c803d8e..6450d6e9 100644
--- a/tree.c
+++ b/tree.c
@@ -381,7 +381,7 @@ static void tr_insert(val tree, struct tree *tr, struct tree_iter *ti,
set(mkloc(subtree->tn.left, subtree), node);
if (++tr->size > tr->max_size)
tr->max_size = tr->size;
- if (subtree->tn.right == nil && (((ucnum) 1) << dep) > tr->size) {
+ if (subtree->tn.right == nil && (convert(ucnum, 1) << dep) > tr->size) {
set(mkloc(ti->path[ti->depth++], ti->self), subtree);
tr_find_rebuild_scapegoat(tree, tr, ti, node, 1);
}
@@ -412,7 +412,7 @@ static void tr_insert(val tree, struct tree *tr, struct tree_iter *ti,
set(mkloc(subtree->tn.right, subtree), node);
if (++tr->size > tr->max_size)
tr->max_size = tr->size;
- if (subtree->tn.left == nil && (((ucnum) 1) << dep) > tr->size) {
+ if (subtree->tn.left == nil && (convert(ucnum, 1) << dep) > tr->size) {
set(mkloc(ti->path[ti->depth++], ti->self), subtree);
tr_find_rebuild_scapegoat(tree, tr, ti, node, 1);
}