Various minor changes to aid compiling with std14 (#182)
These changes make the code compile in clang10 with -std14.
This commit is contained in:
committed by
GitHub
parent
c899ee7ab2
commit
a9cfc3a2b4
@@ -284,6 +284,7 @@ namespace snmalloc
|
||||
UNUSED(size);
|
||||
return free(p);
|
||||
#else
|
||||
SNMALLOC_ASSERT(p != nullptr);
|
||||
check_size(p, size);
|
||||
if (likely((size - 1) <= (sizeclass_to_size(NUM_SMALL_CLASSES - 1) - 1)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user