Add another checker.

Use nullptr where appropriate.
This commit is contained in:
David Chisnall
2019-04-29 15:00:25 +01:00
parent c3c71afa57
commit 22d33ebf99
3 changed files with 3 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ namespace snmalloc
size_t log2align = bits::next_pow2_bits(align);
void* p = mmap(
NULL,
nullptr,
request,
PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS | MAP_ALIGNED(log2align),