X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=test_perthreadlock.c;h=89cce65be71fbdb8badbebedc936b6611e7dc697;hp=7d722314bb91c3a7c6899efa3aac5dcd2ea3fd8c;hb=637dc4450f86349476eee1bde5de66b4c7383eec;hpb=9e31d0f0084e781405056c347aa4a8c53f676096 diff --git a/test_perthreadlock.c b/test_perthreadlock.c index 7d72231..89cce65 100644 --- a/test_perthreadlock.c +++ b/test_perthreadlock.c @@ -185,7 +185,7 @@ void *thr_writer(void *data) } test_array.a = 0; test_array.a = 8; - for (tidx = nr_readers - 1; tidx >= 0; tidx--) { + for (tidx = (long)nr_readers - 1; tidx >= 0; tidx--) { pthread_mutex_unlock(&per_thread_lock[tidx].lock); } nr_writes++;