Skip to content

Commit

Permalink
Typo in assertion.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjp41 committed Sep 30, 2019
1 parent fb9e142 commit f214abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mem/alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f214abd

Please sign in to comment.