[asan] Fix "no matching function" on GCC

This commit is contained in:
Vitaly Buka 2021-11-12 17:41:50 -08:00
parent a144869384
commit 4b768eeb97
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ void *threadFun(void *AltStack) {
int main() {
size_t const PageSize = sysconf(_SC_PAGESIZE);
// The Solaris defaults of 4k (32-bit) and 8k (64-bit) are too small.
size_t const MinStackSize = std::max(PTHREAD_STACK_MIN, 16 * 1024);
size_t const MinStackSize = std::max<size_t>(PTHREAD_STACK_MIN, 16 * 1024);
// To align the alternate stack, we round this up to page_size.
size_t const DefaultStackSize =
(MinStackSize - 1 + PageSize) & ~(PageSize - 1);