We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1b51f0 commit 2c6c3e4Copy full SHA for 2c6c3e4
compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp
@@ -139,7 +139,7 @@ void *threadFun(void *AltStack) {
139
int main() {
140
size_t const PageSize = sysconf(_SC_PAGESIZE);
141
// The Solaris defaults of 4k (32-bit) and 8k (64-bit) are too small.
142
- size_t const MinStackSize = std::max(PTHREAD_STACK_MIN, 16 * 1024);
+ size_t const MinStackSize = std::max<size_t>(PTHREAD_STACK_MIN, 16 * 1024);
143
// To align the alternate stack, we round this up to page_size.
144
size_t const DefaultStackSize =
145
(MinStackSize - 1 + PageSize) & ~(PageSize - 1);
0 commit comments