From: Mathieu Desnoyers Date: Wed, 29 Jun 2011 18:12:23 +0000 (-0400) Subject: pthread_self should be cast to unsigned long X-Git-Tag: v0.6.4~10 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=8ddd797049f1137f54eb1e2924ee2c91047ab8a8 pthread_self should be cast to unsigned long Used as part of the random seed along with time(). Signed-off-by: Mathieu Desnoyers --- 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)