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

Emitted by MSVC
This commit is contained in:
Anonymous Maarten 2022-10-06 01:02:17 +02:00 committed by Anonymous Maarten
parent f3389f13ef
commit 18c776e155
1 changed files with 1 additions and 1 deletions

View File

@ -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);