diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2019-11-15 18:48:55 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2019-11-15 18:59:21 +0000 |
commit | b8de03bdb8696517bff0259e827ece4f5746663c (patch) | |
tree | b9c6ffac12e4e47c9273c0ba178e357e99b36b21 /contrib | |
parent | 58bee0ad2c67888a52fa02e31de3120673525fda (diff) | |
download | ghostpdl-b8de03bdb8696517bff0259e827ece4f5746663c.tar.gz |
Squash a float -> int warning.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/japanese/gdevlbp3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/japanese/gdevlbp3.c b/contrib/japanese/gdevlbp3.c index 096aecf63..8cbc2ce8b 100644 --- a/contrib/japanese/gdevlbp3.c +++ b/contrib/japanese/gdevlbp3.c @@ -137,8 +137,8 @@ BoundImage(gx_device_printer *pDev, struct bounding *pBox) height*10/Yres < 98 ? a5 :\ height*10/Yres < 109 ? b5 :\ height*10/Yres < 116 ? letter : a4; - Xsize = Xres * mm_to_inch(PaperInfo[paper].w-100) / 160; - Ysize = Yres * mm_to_inch(PaperInfo[paper].h-100) / 10; + Xsize = (int)(Xres * mm_to_inch(PaperInfo[paper].w-100) / 160); + Ysize = (int)(Yres * mm_to_inch(PaperInfo[paper].h-100) / 10); /* ----==== Allocate momory ====---- */ if (LineSize < Xsize*2+1) { LineSize = Xsize*2+1; |