fix invalid implicit pointer conversion in pthread_key_create

This commit is contained in:
Rich Felker 2013-10-04 01:06:42 -04:00
parent 7886985e13
commit 38a0a4db2f

View File

@ -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;
}