mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix type error in pthread_create, introduced with pthread_getattr_np
This commit is contained in:
parent
338cc31c4b
commit
ced64995c2
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue