Skip to content

Commit

Permalink
forgot to cast double to unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Apr 23, 2024
1 parent 3252d47 commit be15ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coders/mvg.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ static Image *ReadMVGImage(const ImageInfo *image_info,ExceptionInfo *exception)
96.0;
draw_info->affine.sy=image->y_resolution == 0.0 ? 1.0 : image->y_resolution/
96.0;
image->columns=(size_t) (draw_info->affine.sx*image->columns);
image->rows=(size_t) (draw_info->affine.sy*image->rows);
image->columns=CastDoubleToUnsigned(draw_info->affine.sx*image->columns);
image->rows=CastDoubleToUnsigned(draw_info->affine.sy*image->rows);
status=SetImageExtent(image,image->columns,image->rows);
if (status == MagickFalse)
{
Expand Down

0 comments on commit be15ac9

Please sign in to comment.