pthread_self should be cast to unsigned long
[urcu.git] / urcu / static / urcu.h
index 5ba3004ddb17ccef50f69be9925ed8181923d65b..f2293bca5054db275cd52e413a2e954ecd60af86 100644 (file)
@@ -146,7 +146,7 @@ static inline void debug_yield_write(void)
 
 static inline void debug_yield_init(void)
 {
-       rand_yield = time(NULL) ^ pthread_self();
+       rand_yield = time(NULL) ^ (unsigned long) pthread_self();
 }
 #else
 static inline void debug_yield_read(void)
This page took 0.022582 seconds and 4 git commands to generate.