summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorGeorge Matsumura <gmmatsumura01@bvsd.org>2020-08-08 02:41:57 -0600
committerGeorge Matsumura <gmmatsumura01@bvsd.org>2020-08-08 02:41:57 -0600
commitf3216016b0fb00cd297643839b6be295301aeeb2 (patch)
tree0586802b27d054602135269943c01f32c816ae4e /libgcompat
parent715b50ecba88d8cb83166c86567a51b165846ce6 (diff)
downloadgcompat-f3216016b0fb00cd297643839b6be295301aeeb2.tar.gz
gcompat-f3216016b0fb00cd297643839b6be295301aeeb2.tar.bz2
gcompat-f3216016b0fb00cd297643839b6be295301aeeb2.tar.xz
gcompat-f3216016b0fb00cd297643839b6be295301aeeb2.zip
Correct __*_finite math functions
This corrects a mistake in the finite math functions in which it was asserted that the return values had to be infinite, instead of the intended behavior of asserting that they were not infinite. Signed-off-by: George Matsumura <gmmatsumura01@bvsd.org>
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/math.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgcompat/math.c b/libgcompat/math.c
index 793ff1a..ce567ef 100644
--- a/libgcompat/math.c
+++ b/libgcompat/math.c
@@ -177,9 +177,9 @@ weak_alias(__isnanl, isnanl);
"infinite value returned in a function that returns a " \
"finite result");
-#define ASSERT_FINITEF(res) _ASSERT_FINITE(isinff, res)
-#define ASSERT_FINITE(res) _ASSERT_FINITE(isinf, res)
-#define ASSERT_FINITEL(res) _ASSERT_FINITE(isinfl, res)
+#define ASSERT_FINITEF(res) _ASSERT_FINITE(finitef, res)
+#define ASSERT_FINITE(res) _ASSERT_FINITE(finite, res)
+#define ASSERT_FINITEL(res) _ASSERT_FINITE(finitel, res)
/**
* Returns the principal value of the arc cosine of x, expressed in radians.