From: Mathieu Desnoyers Date: Wed, 29 Jun 2011 18:35:08 +0000 (-0400) Subject: api.h: fix type warning X-Git-Tag: v0.6.4~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=05b49d3dba7b64cca5591be6b74e21b23b5fceb7;p=userspace-rcu.git api.h: fix type warning Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/api_x86.h b/tests/api_x86.h index c774c32..527221c 100644 --- a/tests/api_x86.h +++ b/tests/api_x86.h @@ -404,8 +404,8 @@ typedef pthread_t thread_id_t; #define NR_THREADS 128 -#define __THREAD_ID_MAP_EMPTY 0 -#define __THREAD_ID_MAP_WAITING 1 +#define __THREAD_ID_MAP_EMPTY ((thread_id_t) 0) +#define __THREAD_ID_MAP_WAITING ((thread_id_t) 1) thread_id_t __thread_id_map[NR_THREADS]; spinlock_t __thread_id_map_mutex;