summaryrefslogtreecommitdiff
path: root/test/math_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/math_util.c')
-rw-r--r--test/math_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/math_util.c b/test/math_util.c
index 46087e9f33..e563d8dd02 100644
--- a/test/math_util.c
+++ b/test/math_util.c
@@ -37,7 +37,7 @@ static int test_acos(void)
/* Test a handful of values. */
for (test = -1.0; test <= 1.0; test += 0.01) {
- a = arc_cos(test);
+ a = FP_TO_FLOAT(arc_cos(FLOAT_TO_FP(test)));
b = acos(test) * RAD_TO_DEG;
TEST_ASSERT(IS_FLOAT_EQUAL(a, b, ACOS_TOLERANCE_DEG));
}