diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-06-13 18:27:10 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-06-13 23:27:20 -0700 |
commit | 3e3032cfa044268cee76735823755db274025021 (patch) | |
tree | ead68726685be0e1b6fdccd5c78f132dfb093517 /src/libs/din | |
parent | 2825d01bf16f8b22f8eb9b92b2c21a654c13e563 (diff) |
*: smattering of random small fixes to silence -Wall
I thought the build was already using -Wall but that seems to not
be the case, maybe got lost somewhere along the line or messed up
in configure.ac
After forcing a build with -Wall -Werror, these showed up.
Fixed up in the obvious way, nothing too scary.
Diffstat (limited to 'src/libs/din')
-rw-r--r-- | src/libs/din/din.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/din/din.c b/src/libs/din/din.c index 4290d41..b2c2823 100644 --- a/src/libs/din/din.c +++ b/src/libs/din/din.c @@ -18,7 +18,7 @@ typedef struct din_t { /* return random number between -1 and +1 */ static inline float randf(unsigned *seed) { - return 2.f / RAND_MAX * rand_r(seed) - 1.f; + return 2.f / ((float)RAND_MAX) * rand_r(seed) - 1.f; } |