mirror of https://github.com/encounter/SDL.git
testspriteminimal: fix conversion from `time_t` to `unsigned int`
Emitted by MSVC
This commit is contained in:
parent
f3389f13ef
commit
18c776e155
|
@ -117,7 +117,7 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize the sprite positions */
|
/* Initialize the sprite positions */
|
||||||
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_WIDTH - sprite_w);
|
positions[i].x = rand() % (WINDOW_WIDTH - sprite_w);
|
||||||
positions[i].y = rand() % (WINDOW_HEIGHT - sprite_h);
|
positions[i].y = rand() % (WINDOW_HEIGHT - sprite_h);
|
||||||
|
|
Loading…
Reference in New Issue