X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Ftest_perthreadlock.c;h=f02e00b43e8db6144911dd4512a3f49875c9ac41;hp=512b1fc8ff1dc1f6697c28911ce382cec3c1ebe3;hb=d266df35815fc53c237c5cf96ff1a6391e2bbe6f;hpb=83e334d03eaba62df373cf44298616458900078a diff --git a/tests/benchmark/test_perthreadlock.c b/tests/benchmark/test_perthreadlock.c index 512b1fc..f02e00b 100644 --- a/tests/benchmark/test_perthreadlock.c +++ b/tests/benchmark/test_perthreadlock.c @@ -220,7 +220,7 @@ void *thr_writer(void *data) cmm_smp_mb(); for (;;) { - for (tidx = 0; tidx < nr_readers; tidx++) { + for (tidx = 0; tidx < (long)nr_readers; tidx++) { urcu_mutex_lock(&per_thread_lock[tidx].lock); } test_array.a = 0;