From: Dirk Lemstra Date: Fri, 23 Aug 2019 08:02:05 +0000 (+0200) Subject: Corrected type cast. X-Git-Tag: 7.0.8-62~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2902504a6ce7f68e69097406ff0856281d9f666b;p=imagemagick Corrected type cast. --- diff --git a/coders/jp2.c b/coders/jp2.c index 9478b1457..8e48a4fd4 100644 --- a/coders/jp2.c +++ b/coders/jp2.c @@ -836,8 +836,8 @@ static MagickBooleanType WriteJP2Image(const ImageInfo *image_info,Image *image, */ opj_set_default_encoder_parameters(¶meters); for (i=1; i < 6; i++) - if (((size_t) (1UL << (i+2)) > image->columns) && - ((size_t) (1UL << (i+2)) > image->rows)) + if ((((size_t) 1UL << (i+2)) > image->columns) && + (((size_t) 1UL << (i+2)) > image->rows)) break; parameters.numresolution=i; option=GetImageOption(image_info,"jp2:number-resolutions");