summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2010-06-01 19:31:26 +0100
committerAndreas Ericsson <ae@op5.se>2010-06-02 11:18:55 +0200
commit468b12adb15f5546e7c5536f72204605fbd83f6d (patch)
tree259ad1a27fc30dc0167d8dd506cb800bd128abc5
parent4e0d6d864d3632a820d8bf3dd89ff333b9bbd34d (diff)
downloadlibgit2-468b12adb15f5546e7c5536f72204605fbd83f6d.tar.gz
msvc: tests/t0403-lists.c: Fix a compiler warning
For more recent versions of msvc, the time_t type, as returned by the time() function, is a 64-bit type. The srand() function, however, expects an 'unsigned int' input parameter, leading to the warning. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Andreas Ericsson <ae@op5.se>
-rw-r--r--tests/t0403-lists.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t0403-lists.c b/tests/t0403-lists.c
index ff4fd6b1c..daee7af94 100644
--- a/tests/t0403-lists.c
+++ b/tests/t0403-lists.c
@@ -20,7 +20,7 @@ BEGIN_TEST(list_timesort_test)
}
memset(&list, 0x0, sizeof(git_commit_list));
- srand(time(NULL));
+ srand((unsigned int)time(NULL));
for (t = 0; t < 20; ++t)
{