about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-04-06 01:15:08 -0400
committerRich Felker <dalias@aerifal.cx>2013-04-06 01:15:08 -0400
commitced64995c26a28ae40c5ae356b6c6a87a3bdf5ce (patch)
tree2edd536f9b3a630fa2200ca0398de3177eb75753 /src
parent338cc31c4bb80fb5f703b3c4a2fb4210138592ba (diff)
downloadmusl-ced64995c26a28ae40c5ae356b6c6a87a3bdf5ce.tar.gz
musl-ced64995c26a28ae40c5ae356b6c6a87a3bdf5ce.tar.xz
musl-ced64995c26a28ae40c5ae356b6c6a87a3bdf5ce.zip
fix type error in pthread_create, introduced with pthread_getattr_np
Diffstat (limited to 'src')
-rw-r--r--src/thread/pthread_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_create.c b/src/thread/pthread_create.c
index 6163f509..e6760abb 100644
--- a/src/thread/pthread_create.c
+++ b/src/thread/pthread_create.c
@@ -123,7 +123,7 @@ int pthread_create(pthread_t *restrict res, const pthread_attr_t *restrict attrp
 		size_t need = libc.tls_size + __pthread_tsd_size;
 		size = attr._a_stacksize + DEFAULT_STACK_SIZE;
 		stack = (void *)(attr._a_stackaddr & -16);
-		stack_limit = attr._a_stackaddr - size;
+		stack_limit = (void *)(attr._a_stackaddr - size);
 		/* Use application-provided stack for TLS only when
 		 * it does not take more than ~12% or 2k of the
 		 * application's stack space. */