From 3e3032cfa044268cee76735823755db274025021 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 13 Jun 2023 18:27:10 -0700 Subject: *: 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. --- src/libs/din/din.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libs/din/din.c') 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; } -- cgit v1.2.1