commit | 2746b9289abc0fd5e38b94fc96d101e5e242d9f2 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Mar 31 02:41:32 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Mar 31 02:41:33 2015 +0000 |
tree | 2a8d25e25b042f04146725c7a287619e2892940c | |
parent | 2d84d870db0e6db54cf09441434bf2f5b28c6492 [diff] | |
parent | 3925f32ffb1ac93fb20b0e4ec86aa600eb942645 [diff] |
Merge "Revert "Fix clang build breakage ("arithmetic on a pointer to void").""
diff --git a/libc/bionic/pthread_create.cpp b/libc/bionic/pthread_create.cpp index cc37f5a..179ae95 100644 --- a/libc/bionic/pthread_create.cpp +++ b/libc/bionic/pthread_create.cpp
@@ -77,7 +77,7 @@ return; } stack_t ss; - ss.ss_sp = reinterpret_cast<uint8_t*>(stack_base) + PAGE_SIZE; + ss.ss_sp = stack_base + PAGE_SIZE; ss.ss_size = SIGNAL_STACK_SIZE - PAGE_SIZE; ss.ss_flags = 0; sigaltstack(&ss, NULL);