X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=test_perthreadlock.c;fp=test_perthreadlock.c;h=89cce65be71fbdb8badbebedc936b6611e7dc697;hp=7d722314bb91c3a7c6899efa3aac5dcd2ea3fd8c;hb=f120cc103581d43ab08970222e6e836434b8d765;hpb=b89816ac7ea2c05447e881d9820c883e019c850b 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++;