fix invalid implicit pointer conversion in pthread_key_create
This commit is contained in:
parent
7886985e13
commit
38a0a4db2f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue