Bläddra i källkod

testspriteminimal: fix conversion from `time_t` to `unsigned int`

Emitted by MSVC
Anonymous Maarten 2 år sedan
förälder
incheckning
18c776e155
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      test/testspriteminimal.c

+ 1 - 1
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);