From f214abde3f6e4cd1bddab35920a56370ad559d17 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Mon, 30 Sep 2019 13:43:32 +0100 Subject: [PATCH] Typo in assertion. --- src/mem/alloc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/alloc.h b/src/mem/alloc.h index 61128e0..09ebf96 100644 --- a/src/mem/alloc.h +++ b/src/mem/alloc.h @@ -687,7 +687,7 @@ namespace snmalloc Allocator); constexpr size_t initial_shift = bits::next_pow2_bits_const(allocator_size); - assert((initial_shift - (r * REMOTE_SLOT_BITS)) < 64); + assert((initial_shift + (r * REMOTE_SLOT_BITS)) < 64); return (id >> (initial_shift + (r * REMOTE_SLOT_BITS))) & REMOTE_MASK; }