X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fcommon%2Fapi.h;h=a260463ad09ea212bb7ee4517a2fd995f21b2d74;hp=4fe6969f424652e5d18081ae285d621c74d785e4;hb=153b081a9b007aad7bece415dc3bf1125edd2da3;hpb=35701ce90e66221d86429bc055ef585d8848c8d5 diff --git a/tests/common/api.h b/tests/common/api.h index 4fe6969..a260463 100644 --- a/tests/common/api.h +++ b/tests/common/api.h @@ -165,7 +165,7 @@ static int smp_thread_id(void) id = pthread_getspecific(thread_id_key); if (id == NULL) return __smp_thread_id(); - return (long)(id - 1); + return ((long) id - 1); } static thread_id_t create_thread(void *(*func)(void *), void *arg)