Skip to content

Commit 2c6c3e4

Browse files
vitalybukatstellar
authored andcommitted
[asan] Fix "no matching function" on GCC
(cherry picked from commit 4b768ee)
1 parent c1b51f0 commit 2c6c3e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void *threadFun(void *AltStack) {
139139
int main() {
140140
size_t const PageSize = sysconf(_SC_PAGESIZE);
141141
// 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);
142+
size_t const MinStackSize = std::max<size_t>(PTHREAD_STACK_MIN, 16 * 1024);
143143
// To align the alternate stack, we round this up to page_size.
144144
size_t const DefaultStackSize =
145145
(MinStackSize - 1 + PageSize) & ~(PageSize - 1);

0 commit comments

Comments
 (0)