diff options
author | Jason Evans <jasone@canonware.com> | 2017-02-09 20:31:11 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2017-02-10 17:05:02 (GMT) |
commit | 6b8ef771a9de9318964f8b5b7cff5ea3958f0294 (patch) | |
tree | f991ef2828054702483d513ae5c295c591052d53 /include/jemalloc | |
parent | 7f55dbef9b2a2b93e021d47fa4e6d69c1a633155 (diff) | |
download | jemalloc-6b8ef771a9de9318964f8b5b7cff5ea3958f0294.zip jemalloc-6b8ef771a9de9318964f8b5b7cff5ea3958f0294.tar.gz jemalloc-6b8ef771a9de9318964f8b5b7cff5ea3958f0294.tar.bz2 |
Fix rtree_subkey() regression.
Fix rtree_subkey() to use uintptr_t rather than unsigned for key
bitmasking. This regression was introduced by
4a346f55939af4f200121cc4454089592d952f18 (Replace rtree path cache with
LRU cache.).
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/rtree_inlines.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/rtree_inlines.h b/include/jemalloc/internal/rtree_inlines.h index 4de0479..f2efd71 100644 --- a/include/jemalloc/internal/rtree_inlines.h +++ b/include/jemalloc/internal/rtree_inlines.h @@ -40,7 +40,7 @@ rtree_subkey(uintptr_t key, unsigned level) { unsigned cumbits = rtree_levels[level].cumbits; unsigned shiftbits = ptrbits - cumbits; unsigned maskbits = rtree_levels[level].bits; - unsigned mask = (ZU(1) << maskbits) - 1; + uintptr_t mask = (ZU(1) << maskbits) - 1; return ((key >> shiftbits) & mask); } |