api.h: fix type warning
[urcu.git] / tests / api_x86.h
index c774c322e3109a67c6fdb59ccd66c3bcbaa22c99..527221c55eda3efab0239353de8e9d9a5efd92e5 100644 (file)
@@ -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;
 
This page took 0.022399 seconds and 4 git commands to generate.