提交 38a0a4db 编写于 作者: R Rich Felker

fix invalid implicit pointer conversion in pthread_key_create

上级 7886985e
...@@ -17,7 +17,7 @@ int pthread_key_create(pthread_key_t *k, void (*dtor)(void *)) ...@@ -17,7 +17,7 @@ int pthread_key_create(pthread_key_t *k, void (*dtor)(void *))
__pthread_self_init(); __pthread_self_init();
if (!dtor) dtor = nodtor; if (!dtor) dtor = nodtor;
do { do {
if (!a_cas_p(keys+j, 0, dtor)) { if (!a_cas_p(keys+j, 0, (void *)dtor)) {
*k = j; *k = j;
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册