diff options
-rw-r--r-- | compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp b/compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp index a2082ed08215..101c35fa10be 100644 --- a/compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp +++ b/compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp @@ -139,7 +139,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); |