pal bsd aligned build fix due to the -Wconversion flag, it is expected
an integer.
This commit is contained in:
committed by
Matthew Parkinson
parent
e1ba7cd592
commit
a1fc509a65
@@ -35,7 +35,7 @@ namespace snmalloc
|
||||
SNMALLOC_ASSERT(bits::is_pow2(size));
|
||||
SNMALLOC_ASSERT(size >= minimum_alloc_size);
|
||||
|
||||
size_t log2align = bits::next_pow2_bits(size);
|
||||
int log2align = static_cast<int>(bits::next_pow2_bits(size));
|
||||
|
||||
void* p = mmap(
|
||||
nullptr,
|
||||
|
||||
Reference in New Issue
Block a user