Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/pull/4986
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 24, 2022
1 parent 34cbd5f commit 29c8abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coders/pcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 29c8abc

Please sign in to comment.