From 18c776e155c7da7d2ce8e36c9687bb66db033493 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 6 Oct 2022 01:02:17 +0200 Subject: [PATCH] testspriteminimal: fix conversion from `time_t` to `unsigned int` Emitted by MSVC --- test/testspriteminimal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testspriteminimal.c b/test/testspriteminimal.c index 36ea373b0..6be99fd4a 100644 --- a/test/testspriteminimal.c +++ b/test/testspriteminimal.c @@ -117,7 +117,7 @@ main(int argc, char *argv[]) } /* Initialize the sprite positions */ - srand(time(NULL)); + srand((unsigned int)time(NULL)); for (i = 0; i < NUM_SPRITES; ++i) { positions[i].x = rand() % (WINDOW_WIDTH - sprite_w); positions[i].y = rand() % (WINDOW_HEIGHT - sprite_h);