diff options
author | Elliott Hughes <enh@google.com> | 2015-03-30 14:33:02 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2015-03-30 14:33:02 -0700 |
commit | 16c77212792808b9e4d8229e64c5b42f4327b6dc (patch) | |
tree | 081d717f6b02174757b2f2fec33f9bcad4487365 | |
parent | 373748f4c66bb37e564716590e7b4fc8a64e0884 (diff) | |
download | android_bionic-16c77212792808b9e4d8229e64c5b42f4327b6dc.tar.gz android_bionic-16c77212792808b9e4d8229e64c5b42f4327b6dc.tar.bz2 android_bionic-16c77212792808b9e4d8229e64c5b42f4327b6dc.zip |
Fix clang build breakage ("arithmetic on a pointer to void").
Change-Id: Ia0953fc1cd0f8ea2d4423b3c6e34f6dc7a9f31e9
-rw-r--r-- | libc/bionic/pthread_create.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/pthread_create.cpp b/libc/bionic/pthread_create.cpp index 179ae95da..cc37f5a74 100644 --- a/libc/bionic/pthread_create.cpp +++ b/libc/bionic/pthread_create.cpp @@ -77,7 +77,7 @@ void __init_alternate_signal_stack(pthread_internal_t* thread) { return; } stack_t ss; - ss.ss_sp = stack_base + PAGE_SIZE; + ss.ss_sp = reinterpret_cast<uint8_t*>(stack_base) + PAGE_SIZE; ss.ss_size = SIGNAL_STACK_SIZE - PAGE_SIZE; ss.ss_flags = 0; sigaltstack(&ss, NULL); |