X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Fstatic%2Furcu.h;h=f2293bca5054db275cd52e413a2e954ecd60af86;hb=8ddd797049f1137f54eb1e2924ee2c91047ab8a8;hp=5ba3004ddb17ccef50f69be9925ed8181923d65b;hpb=4c1ae2ea760611f4d2b658b4e6b374f597c1c1f9;p=urcu.git 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)