diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-11-22 15:35:18 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-11-22 15:35:18 -0800 |
commit | 330749e3a3e97656c13946f85c0a1023ce231627 (patch) | |
tree | 888d7fcce3800a2cceb03a47c1ee4f9fa11afc20 /src/game.c | |
parent | be557e9ab94cf5bfa02cdd27cb2e4d4a94aaa826 (diff) |
game: silence clang warning about implicit float conversion
just adding an explicit cast
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -189,7 +189,7 @@ typedef struct game_t { static inline float randf(void) { - return 2.f / RAND_MAX * rand() - 1.f; + return 2.f / (float)RAND_MAX * rand() - 1.f; } |