Commit 18c776e155c7da7d2ce8e36c9687bb66db033493

Anonymous Maarten 2022-10-06T01:02:17

testspriteminimal: fix conversion from `time_t` to `unsigned int` Emitted by MSVC

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/testspriteminimal.c b/test/testspriteminimal.c
index 36ea373..6be99fd 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);