diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2019-10-31 10:17:09 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2019-10-31 10:33:52 +0000 |
commit | f1fd4a73480c5a2f900b1541b45a62ffcc75e12d (patch) | |
tree | baef288b8f803cab427c36d833e748dcff046571 /contrib/gdevgdi.c | |
parent | 67a101f3eb888bc651cc13bfb06280a669a84967 (diff) | |
download | ghostpdl-f1fd4a73480c5a2f900b1541b45a62ffcc75e12d.tar.gz |
Fix warnings when building contrib on windows.
MSVC is much more sensitive to casting types than gcc is, it
seems. Accordingly avoid making doubles when we want floats, and
make all casts down to int (or byte) explicit.
Diffstat (limited to 'contrib/gdevgdi.c')
-rw-r--r-- | contrib/gdevgdi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gdevgdi.c b/contrib/gdevgdi.c index 60bd5c199..b22b1478f 100644 --- a/contrib/gdevgdi.c +++ b/contrib/gdevgdi.c @@ -71,8 +71,8 @@ #define GDI_COMP_MODITIFF 6 #define GDI_COMP_NOSEND 0x7f -#define GDI_MARGINS_A4 0.167, 0.167, 0.167, 0.167 -#define GDI_MARGINS_LETTER 0.167, 0.167, 0.167, 0.167 +#define GDI_MARGINS_A4 0.167f, 0.167f, 0.167f, 0.167f +#define GDI_MARGINS_LETTER 0.167f, 0.167f, 0.167f, 0.167f /*#define GDI_MARGINS_A4 0.0, 0.0, 0.0, 0.0*/ /*#define GDI_MARGINS_LETTER 0.0, 0.0, 0.0, 0.0*/ |