From d978b7a68fda3ec4952e1220e5db8281e3f939d6 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Tue, 30 Apr 2019 15:06:45 +0100 Subject: [PATCH] Apply clang-tidy checks to the Linux build. --- src/pal/pal_linux.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pal/pal_linux.h b/src/pal/pal_linux.h index fa83a45..4886a7c 100644 --- a/src/pal/pal_linux.h +++ b/src/pal/pal_linux.h @@ -62,10 +62,10 @@ namespace snmalloc } template - void* reserve(size_t* size) noexcept + void* reserve(const size_t* size) noexcept { void* p = mmap( - NULL, + nullptr, *size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, @@ -78,5 +78,5 @@ namespace snmalloc return p; } }; -} +} // namespace snmalloc #endif