diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-01-04 17:18:19 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-01-04 18:59:07 +0000 |
commit | 7069210f88b764929a32713ab5032f02097b62b5 (patch) | |
tree | e337a2815d746f1f8b1b6a3827b1918ff3637980 /xps/xpsglyphs.c | |
parent | d697081ba9f0943977ed5ae8a62c7389046a5776 (diff) | |
download | ghostpdl-7069210f88b764929a32713ab5032f02097b62b5.tar.gz |
Squash warnings: XPS MSVC
Add some casts etc to squash (most of) the warnings seen in
an MSVC debug build of ghostxps.
We have an unavoidable "cast away of const" in a devspecop call,
and various stupidities in the jpegxr lib left over.
Diffstat (limited to 'xps/xpsglyphs.c')
-rw-r--r-- | xps/xpsglyphs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xps/xpsglyphs.c b/xps/xpsglyphs.c index 5f1c363d9..d6bdabbb9 100644 --- a/xps/xpsglyphs.c +++ b/xps/xpsglyphs.c @@ -384,7 +384,7 @@ xps_parse_glyphs_imp(xps_context_t *ctx, xps_font_t *font, float size, /* Adjust glyph offset and advance width for emboldening */ if (sim_bold) { - advance *= 1.02; + advance *= 1.02f; u_offset += 0.01 * size; v_offset += 0.01 * size; } @@ -471,7 +471,7 @@ xps_parse_glyphs(xps_context_t *ctx, int sim_bold = 0; int sim_italic = 0; - gs_matrix shear = { 1, 0, 0.36397, 1, 0, 0 }; /* shear by 20 degrees */ + gs_matrix shear = { 1, 0, 0.36397f, 1, 0, 0 }; /* shear by 20 degrees */ /* * Extract attributes and extended attributes. |