diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-30 10:19:05 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-30 10:19:05 -0700 |
commit | 48ae14de71a389f29fdb6542e04e1c805788f5bb (patch) | |
tree | cc81da4ac40b956b48c6d600cbeb67a0881375f9 | |
parent | 80343d763780369d7557543f5e1f11e8a0e0eb7f (diff) | |
parent | dd7c2d916423ed3ae9140c7774a7af68d9ba8f65 (diff) |
Merge pull request #1116 from waywardmonkeys/use-isfinite
Use isfinite() instead of finite().
-rwxr-xr-x | tests/runner.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/runner.py b/tests/runner.py index 7bb2238e..5b0ef965 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -1754,10 +1754,10 @@ Succeeded! int main() { printf("*%.2f,%.2f,%d", M_PI, -M_PI, (1/0.0) > 1e300); // could end up as infinity, or just a very very big number - printf(",%d", finite(NAN) != 0); - printf(",%d", finite(INFINITY) != 0); - printf(",%d", finite(-INFINITY) != 0); - printf(",%d", finite(12.3) != 0); + printf(",%d", isfinite(NAN) != 0); + printf(",%d", isfinite(INFINITY) != 0); + printf(",%d", isfinite(-INFINITY) != 0); + printf(",%d", isfinite(12.3) != 0); printf(",%d", isinf(NAN) != 0); printf(",%d", isinf(INFINITY) != 0); printf(",%d", isinf(-INFINITY) != 0); |