From b8de03bdb8696517bff0259e827ece4f5746663c Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 15 Nov 2019 18:48:55 +0000 Subject: Squash a float -> int warning. --- contrib/japanese/gdevlbp3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') 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; -- cgit v1.2.1