eliminate compiler exception

This commit is contained in:
Cristy
2026-05-03 11:12:43 -04:00
parent 1248f5532e
commit 428e5dab71
+1 -2
View File
@@ -2300,8 +2300,7 @@ static inline MagickBooleanType CheckPrimitiveExtent(MVGInfo *mvg_info,
(mvg_info->extent == (size_t *) NULL))
return(MagickFalse);
proposed_extent=mvg_info->offset+pad+PrimitiveExtentPad+1.0;
if ((proposed_extent <= 0.0) ||
(proposed_extent > CastDoubleToSizeT(SIZE_MAX)))
if ((proposed_extent <= 0.0) || (proposed_extent > (double) MAGICK_SIZE_MAX))
return(MagickFalse);
extent=CastDoubleToSizeT(ceil(proposed_extent));
if (extent <= *mvg_info->extent)