Apply clang-tidy checks to the Linux build.

This commit is contained in:
David Chisnall
2019-04-30 15:06:45 +01:00
parent d259a87d03
commit d978b7a68f

View File

@@ -62,10 +62,10 @@ namespace snmalloc
}
template<bool committed>
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