Procházet zdrojové kódy

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

Emitted by MSVC
Anonymous Maarten před 2 roky
rodič
revize
7a7980fafa
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      test/testnative.c

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