summaryrefslogtreecommitdiff
path: root/tsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tsd.c')
-rw-r--r--tsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tsd.c b/tsd.c
index 72a03ea..b43f4c9 100644
--- a/tsd.c
+++ b/tsd.c
@@ -215,7 +215,7 @@ pthread_setspecific (pthread_key_t key, const void *value)
* Resolve catch-22 of registering thread with threadSelf
* key
*/
- self = pthread_getspecific (_pthread_selfThreadKey);
+ self = (pthread_t) pthread_getspecific (_pthread_selfThreadKey);
if (self == NULL)
{
self = (pthread_t) value;