summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/t0603-sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0603-sort.c b/tests/t0603-sort.c
index 0735f982d..28292377a 100644
--- a/tests/t0603-sort.c
+++ b/tests/t0603-sort.c
@@ -20,7 +20,7 @@ void randomize_entries(git_index *index)
unsigned int i, j;
git_index_entry tmp;
- srand(time(NULL));
+ srand((unsigned int)time(NULL));
for (i = 0; i < index->entry_count; ++i) {
j = rand() % index->entry_count;