Skip to content

Commit e8e0f60

Browse files
mjp41davidchisnall
authored andcommitted
Fix GCC 9 error.
1 parent 19e8518 commit e8e0f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mem/alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ namespace snmalloc
974974
template<ZeroMem zero_mem, AllowReserve allow_reserve>
975975
SNMALLOC_FAST_PATH void* small_alloc_inner(sizeclass_t sizeclass)
976976
{
977-
assert(sizeclass < NUM_SMALL_CLASSES);
977+
SNMALLOC_ASSUME(sizeclass < NUM_SMALL_CLASSES);
978978
auto& fl = small_fast_free_lists[sizeclass];
979979
void* head = fl.value;
980980
if (likely(head != nullptr))

0 commit comments

Comments
 (0)