pal bsd aligned build fix due to the -Wconversion flag, it is expected

an integer.
This commit is contained in:
David Carlier
2021-03-01 21:54:21 +00:00
committed by Matthew Parkinson
parent e1ba7cd592
commit a1fc509a65

View File

@@ -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,