From 8ddd797049f1137f54eb1e2924ee2c91047ab8a8 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 29 Jun 2011 14:12:23 -0400 Subject: [PATCH] pthread_self should be cast to unsigned long Used as part of the random seed along with time(). Signed-off-by: Mathieu Desnoyers --- urcu/static/urcu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urcu/static/urcu.h b/urcu/static/urcu.h index 5ba3004..f2293bc 100644 --- a/urcu/static/urcu.h +++ b/urcu/static/urcu.h @@ -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) -- 2.34.1