Commit 7a7980fafaa3a447c7ba64f7a014d4d0e2f3e755

Anonymous Maarten 2022-10-06T01:12:42

testnative: 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/testnative.c b/test/testnative.c
index 34ee661..e115089 100644
--- a/test/testnative.c
+++ b/test/testnative.c
@@ -164,7 +164,7 @@ main(int argc, char *argv[])
         SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Out of memory!\n");
         quit(2);
     }
-    srand(time(NULL));
+    srand((unsigned int)time(NULL));
     for (i = 0; i < NUM_SPRITES; ++i) {
         positions[i].x = rand() % (window_w - sprite_w);
         positions[i].y = rand() % (window_h - sprite_h);