From 29c8abce0da56b536542f76a9ddfebdaab5b2943 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 24 Mar 2022 11:38:59 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/pull/4986 --- coders/pcl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/pcl.c b/coders/pcl.c index 5e57086e45..a7456dae6c 100644 --- a/coders/pcl.c +++ b/coders/pcl.c @@ -295,8 +295,8 @@ static Image *ReadPCLImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Set PCL render geometry. */ - width=(size_t) floor(bounds.x2-bounds.x1+0.5); - height=(size_t) floor(bounds.y2-bounds.y1+0.5); + width=(size_t) CastDoubleToLong(floor(bounds.x2-bounds.x1+0.5)); + height=(size_t) CastDoubleToLong(floor(bounds.y2-bounds.y1+0.5)); if (width > page.width) page.width=width; if (height > page.height)