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)