From f3216016b0fb00cd297643839b6be295301aeeb2 Mon Sep 17 00:00:00 2001 From: George Matsumura Date: Sat, 8 Aug 2020 02:41:57 -0600 Subject: 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 --- libgcompat/math.c | 6 +++--- 1 file 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. -- cgit v1.2.3-70-g09d2