mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-23 22:52:23 +03:00
fix invalid implicit pointer conversion in pthread_key_create
This commit is contained in:
parent
7886985e13
commit
38a0a4db2f
@ -17,7 +17,7 @@ int pthread_key_create(pthread_key_t *k, void (*dtor)(void *))
|
||||
__pthread_self_init();
|
||||
if (!dtor) dtor = nodtor;
|
||||
do {
|
||||
if (!a_cas_p(keys+j, 0, dtor)) {
|
||||
if (!a_cas_p(keys+j, 0, (void *)dtor)) {
|
||||
*k = j;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user