diff options
author | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-02-11 15:24:20 -0500 |
---|---|---|
committer | Jeff Muizelaar <jmuizelaar@mozilla.com> | 2009-02-11 15:24:24 -0500 |
commit | 41cbd935f9dba276db716e2c71ac21dc60505be9 (patch) | |
tree | 08b0573e74a8bff54a4c8cbe7cf37dca936189b2 /test/invalid-matrix.c | |
parent | 70297f257d4dc0accb5183b806d43a033887acb7 (diff) | |
download | cairo-41cbd935f9dba276db716e2c71ac21dc60505be9.tar.gz |
[test] Add cairo_test_NaN and use it in place of strtod
strtod("NaN") returns 0.0 with the MSVC runtime so we
need to generate NaN some other way.
Diffstat (limited to 'test/invalid-matrix.c')
-rw-r--r-- | test/invalid-matrix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/invalid-matrix.c b/test/invalid-matrix.c index 4ac109e57..933e81c9a 100644 --- a/test/invalid-matrix.c +++ b/test/invalid-matrix.c @@ -74,7 +74,7 @@ if ((status) == CAIRO_STATUS_SUCCESS) { \ #endif /* create a bogus matrix and check results of attempted inversion */ - bogus.x0 = bogus.xy = bogus.xx = strtod ("NaN", NULL); + bogus.x0 = bogus.xy = bogus.xx = cairo_test_NaN (); bogus.y0 = bogus.yx = bogus.yy = bogus.xx; status = cairo_matrix_invert (&bogus); CHECK_STATUS (status, "cairo_matrix_invert(NaN)"); |