Revision
169
Author
robert@fledge.watson.org
Date
2009-11-17 09:23:08 -0800 (Tue, 17 Nov 2009)

Log Message

Cast whatever is returned by pthread_self to uintptr_t in
_dispatch_thread_self, so that later casts to (void *) work consistently
across operating systems.

Submitted by:	Joakim Johansson <jocke@tbricks.com>

Modified Paths

Diff

Modified: trunk/src/shims/tsd.h (168 => 169)


--- trunk/src/shims/tsd.h	2009-11-17 17:18:15 UTC (rev 168)
+++ trunk/src/shims/tsd.h	2009-11-17 17:23:08 UTC (rev 169)
@@ -115,6 +115,6 @@
 }
 #endif
 
-#define _dispatch_thread_self pthread_self
+#define _dispatch_thread_self (uintptr_t)pthread_self
 
 #endif /* __DISPATCH_SHIMS_TSD__ */