Prevent warning

This commit is contained in:
Twinaphex 2016-10-26 02:46:15 +02:00
parent 30d292b60d
commit c2713a6173

View File

@ -481,7 +481,7 @@ bool sthread_tls_create(sthread_tls_t *tls)
#ifdef USE_WIN32_THREADS
return (*tls = TlsAlloc()) != TLS_OUT_OF_INDEXES;
#else
return pthread_key_create(tls, NULL) == 0;
return pthread_key_create((pthread_key_t*)tls, NULL) == 0;
#endif
}