diff options
Diffstat (limited to 'tests/test_heap.c')
-rw-r--r-- | tests/test_heap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_heap.c b/tests/test_heap.c index 12320c62a..3ba9abb48 100644 --- a/tests/test_heap.c +++ b/tests/test_heap.c @@ -209,7 +209,7 @@ static int test3(int fd) i = test_size / 10; while (i--) { - random_index = ast_random() % test_size - 1; + random_index = ast_random() % test_size; node = ast_heap_remove(h, &nodes[random_index]); if (nodes[random_index].val != node->val){ res = -4; |