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/modules/mixer/mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/mixer') diff --git a/src/modules/mixer/mixer.c b/src/modules/mixer/mixer.c index 55234d3..1a2566c 100644 --- a/src/modules/mixer/mixer.c +++ b/src/modules/mixer/mixer.c @@ -113,7 +113,7 @@ static void mixer_destroy_context(til_module_context_t *context) static inline float randf(unsigned *seed) { - return 1.f / RAND_MAX * rand_r(seed); + return 1.f / ((float)RAND_MAX) * rand_r(seed); } static void mixer_render_fragment(til_module_context_t *context, til_stream_t *stream, unsigned ticks, unsigned cpu, til_fb_fragment_t **fragment_ptr) -- cgit v1.2.3