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/user-font-rescale.c | |
parent | 70297f257d4dc0accb5183b806d43a033887acb7 (diff) |
[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/user-font-rescale.c')
-rw-r--r-- | test/user-font-rescale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/user-font-rescale.c b/test/user-font-rescale.c index 04d3f53c..ae56ef84 100644 --- a/test/user-font-rescale.c +++ b/test/user-font-rescale.c @@ -211,7 +211,7 @@ create_rescaled_font (cairo_font_face_t *substitute_font, for (i = 0; i < r->glyph_count; i++) { r->desired_width[i] = desired_width[i]; /* use NaN to specify unset */ - r->rescale_factor[i] = strtod ("NaN", NULL); + r->rescale_factor[i] = cairo_test_NaN (); } status = cairo_font_face_set_user_data (user_font_face, |