From 2e67d94e4f62f620c5157a848396ab69b2f56e51 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 11 Mar 2022 19:27:18 -0500 Subject: don't do floating point cast/div, ya dingus --- src/spatial.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/spatial.c b/src/spatial.c index 502c0f4..e730ee0 100644 --- a/src/spatial.c +++ b/src/spatial.c @@ -277,17 +277,17 @@ ssize_t scene_fill(xas_spatial_scene *scene, if (!within_cone_l) { if (within_cone_r) { - value_l /= 8.0f; + value_l /= 8; } else { - value_l /= 3.0f; + value_l /= 3; } } if (!within_cone_r) { if (within_cone_l) { - value_r /= 8.0f; + value_r /= 8; } else { - value_r /= 3.0f; + value_r /= 3; } } -- cgit v1.2.3