diff options
author | George Matsumura <gmmatsumura01@bvsd.org> | 2020-08-08 02:41:57 -0600 |
---|---|---|
committer | George Matsumura <gmmatsumura01@bvsd.org> | 2020-08-08 02:41:57 -0600 |
commit | f3216016b0fb00cd297643839b6be295301aeeb2 (patch) | |
tree | 0586802b27d054602135269943c01f32c816ae4e /libgcompat | |
parent | 715b50ecba88d8cb83166c86567a51b165846ce6 (diff) | |
download | gcompat-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.c | 6 |
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. |