summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2015-03-12 06:14:50 (GMT)
committerJason Evans <je@fb.com>2015-03-12 06:14:50 (GMT)
commitfbd8d773ad0230ffba4e2c296dac3edcac9ca27e (patch)
treeb63a669ab15d451997e392b8ec741172c01841aa /include
parentbc45d41d23bac598dbd38e5aac5a85b43d24bc04 (diff)
downloadjemalloc-fbd8d773ad0230ffba4e2c296dac3edcac9ca27e.zip
jemalloc-fbd8d773ad0230ffba4e2c296dac3edcac9ca27e.tar.gz
jemalloc-fbd8d773ad0230ffba4e2c296dac3edcac9ca27e.tar.bz2
Fix unsigned comparison underflow.
These bugs only affected tests and debug builds.
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/rtree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/rtree.h b/include/jemalloc/internal/rtree.h
index 2eb726d..c1fb90c 100644
--- a/include/jemalloc/internal/rtree.h
+++ b/include/jemalloc/internal/rtree.h
@@ -260,7 +260,7 @@ rtree_set(rtree_t *rtree, uintptr_t key, const extent_node_t *val)
rtree_val_write(rtree, &node[subkey], val);
return (false);
}
- assert(i < rtree->height - 1);
+ assert(i + 1 < rtree->height);
child = rtree_child_read(rtree, &node[subkey], i);
if (child == NULL)
return (true);