diff options
Diffstat (limited to 'test/pool.c')
-rw-r--r-- | test/pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pool.c b/test/pool.c index 6baf0be..f26362d 100644 --- a/test/pool.c +++ b/test/pool.c @@ -669,7 +669,7 @@ HDfprintf(stderr,"curr_time=%lu\n",(unsigned long)curr_time); /* Shuffle pointers to free */ for(u = 0; u < MPOOL_NUM_RANDOM; u++) { - swap_idx = (size_t)(HDrandom() % (MPOOL_NUM_RANDOM - u)) + u; + swap_idx = (size_t)(HDrandom() % (int)(MPOOL_NUM_RANDOM - u)) + u; swap_ptr = spc[u]; spc[u] = spc[swap_idx]; spc[swap_idx] = swap_ptr; |