diff options
author | XANTRONIX Development | 2022-03-11 19:27:18 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-03-11 19:27:18 -0500 |
commit | 2e67d94e4f62f620c5157a848396ab69b2f56e51 (patch) | |
tree | c4d0dd78ba3cf85dfa16f5bf9a0810cbe2ce46d5 /src | |
parent | f0629d517f4a7cc5df79f9a1e752c631f7366b23 (diff) | |
download | xas-2e67d94e4f62f620c5157a848396ab69b2f56e51.tar.gz xas-2e67d94e4f62f620c5157a848396ab69b2f56e51.tar.bz2 xas-2e67d94e4f62f620c5157a848396ab69b2f56e51.zip |
don't do floating point cast/div, ya dingus
Diffstat (limited to 'src')
-rw-r--r-- | src/spatial.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } } |