summaryrefslogtreecommitdiff
path: root/base/gxdevice.h
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2019-10-31 10:17:09 +0000
committerRobin Watts <Robin.Watts@artifex.com>2019-10-31 10:33:52 +0000
commitf1fd4a73480c5a2f900b1541b45a62ffcc75e12d (patch)
treebaef288b8f803cab427c36d833e748dcff046571 /base/gxdevice.h
parent67a101f3eb888bc651cc13bfb06280a669a84967 (diff)
downloadghostpdl-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 'base/gxdevice.h')
-rw-r--r--base/gxdevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gxdevice.h b/base/gxdevice.h
index be6fd8a95..03525a9be 100644
--- a/base/gxdevice.h
+++ b/base/gxdevice.h
@@ -52,8 +52,8 @@
#define DEFAULT_WIDTH_10THS_US_LETTER 85
#define DEFAULT_HEIGHT_10THS_US_LETTER 110
/* A4 paper (210mm x 297mm), we use 595pt x 842pt. */
-#define DEFAULT_WIDTH_10THS_A4 82.6389
-#define DEFAULT_HEIGHT_10THS_A4 116.9444
+#define DEFAULT_WIDTH_10THS_A4 82.6389f
+#define DEFAULT_HEIGHT_10THS_A4 116.9444f
/* Choose a default. A4 may be set in the makefile. */
#ifdef A4
# define DEFAULT_WIDTH_10THS DEFAULT_WIDTH_10THS_A4