aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-13 23:34:00 +0300
committermax99x <max99x@gmail.com>2011-07-13 23:34:00 +0300
commit3c07ebaefda5c70d5014ceaa5d7cf2a3e65e9316 (patch)
treec485f2bee422bc5a274f94f4652c54360966cbc4
parent81c4df8f8b894ea1d34c6eb6a1bc72d752e2ca1f (diff)
Making the infinity test sign-agnostic (clang compatibility).
-rw-r--r--tests/runner.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 00f12f3f..797b78f9 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -538,14 +538,14 @@ if 'benchmark' not in sys.argv:
int main()
{
printf("*%.2f,%.2f,%f,%f", M_PI, -M_PI, 1/0.0, -1/0.0);
- printf(",%d", finite(NAN));
- printf(",%d", finite(INFINITY));
- printf(",%d", finite(-INFINITY));
- printf(",%d", finite(12.3));
- printf(",%d", isinf(NAN));
- printf(",%d", isinf(INFINITY));
- printf(",%d", isinf(-INFINITY));
- printf(",%d", isinf(12.3));
+ printf(",%d", finite(NAN) != 0);
+ printf(",%d", finite(INFINITY) != 0);
+ printf(",%d", finite(-INFINITY) != 0);
+ printf(",%d", finite(12.3) != 0);
+ printf(",%d", isinf(NAN) != 0);
+ printf(",%d", isinf(INFINITY) != 0);
+ printf(",%d", isinf(-INFINITY) != 0);
+ printf(",%d", isinf(12.3) != 0);
printf("*\\n");
return 0;
}