summaryrefslogtreecommitdiffstats
path: root/test/theap.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/theap.c')
-rw-r--r--test/theap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/theap.c b/test/theap.c
index 86e0893..8e5105a 100644
--- a/test/theap.c
+++ b/test/theap.c
@@ -95,7 +95,7 @@ test_heap_init(void)
HDsrandom((unsigned long)curr_time);
for(u=0; u<NUM_ELEMS; u++)
/* Generate random numbers from -1000 to 1000 */
- rand_num[u].val=(HDrandom()%2001)-1001;
+ rand_num[u].val=(int)(HDrandom()%2001)-1001;
/* Sort random numbers into increasing order */
HDmemcpy(inc_sort_num,rand_num,sizeof(test_obj)*NUM_ELEMS);