From a031634bd64c7f30c4ace5ca06a5a47600b42f47 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 8 Oct 2020 01:29:12 -0700 Subject: *: more cosmetic formatting cleanups Making things a bit more consistent --- src/rmd_math.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rmd_math.c') diff --git a/src/rmd_math.c b/src/rmd_math.c index 1cf3d29..3527490 100644 --- a/src/rmd_math.c +++ b/src/rmd_math.c @@ -28,6 +28,7 @@ #include -double rmdRoundf(double val) { +double rmdRoundf(double val) +{ return val < 0.0 ? ceilf(val - .5) : floorf(val + 0.5); } -- cgit v1.2.3