Typo in assertion.

This commit is contained in:
Matthew Parkinson
2019-09-30 13:43:32 +01:00
parent fb9e1423e7
commit f214abde3f

View File

@@ -687,7 +687,7 @@ namespace snmalloc
Allocator<MemoryProvider, PageMap, IsQueueInline, Replacement>);
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;
}