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

Emitted by MSVC
This commit is contained in:
Anonymous Maarten 2022-10-06 01:12:42 +02:00 committed by Anonymous Maarten
parent 8770689525
commit 7a7980fafa
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ main(int argc, char *argv[])
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Out of memory!\n"); SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Out of memory!\n");
quit(2); quit(2);
} }
srand(time(NULL)); srand((unsigned int)time(NULL));
for (i = 0; i < NUM_SPRITES; ++i) { for (i = 0; i < NUM_SPRITES; ++i) {
positions[i].x = rand() % (window_w - sprite_w); positions[i].x = rand() % (window_w - sprite_w);
positions[i].y = rand() % (window_h - sprite_h); positions[i].y = rand() % (window_h - sprite_h);