]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 15 Dec 2014 22:13:06 +0000 (22:13 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 15 Dec 2014 22:13:06 +0000 (22:13 +0000)
MagickCore/statistic.c
coders/pnm.c
coders/xbm.c

index ffcaeecf5152c06a1adf169e4bd5f6b919b14021..d01a4dc464bf4e1ad7b88be8b30adce5e5b88080 100644 (file)
@@ -2154,7 +2154,7 @@ MagickExport ChannelStatistics *GetImageStatistics(const Image *image,
   }
   for (i=0; i < (ssize_t) MaxPixelChannels; i++)
   {
-    PixelTrait traits=GetPixelChannelTraits(image,i);
+    PixelTrait traits=GetPixelChannelTraits(image,(PixelChannel) i);
     if ((traits & UpdatePixelTrait) == 0)
       continue;
     channel_statistics[CompositePixelChannel].area+=channel_statistics[i].area;
index 50a8a2dbbf4e82dcc817713481ee0bff3539679a..7b501fd4555e9c23289c4d06023ed553c12a782e 100644 (file)
@@ -209,7 +209,7 @@ static unsigned int PNMInteger(Image *image,const unsigned int base,
     if (value > (unsigned int) (INT_MAX/10))
       break;
     value*=10;
-    if (value > (INT_MAX-(c-(int) '0')))
+    if (value > (unsigned int) (INT_MAX-(c-(int) '0')))
       break;
     value+=c-(int) '0';
     c=ReadBlobByte(image);
index e952bfb642e430354d58b5ddd29e8a1a3765f230..73d2f770d04045c1266e57452a5a008ee286cb8c 100644 (file)
@@ -158,7 +158,7 @@ static unsigned int XBMInteger(Image *image,short int *hex_digits)
       break;
     value*=16;
     c&=0xff;
-    if (value > (INT_MAX-hex_digits[c]))
+    if (value > (unsigned int) (INT_MAX-hex_digits[c]))
       break;
     value+=hex_digits[c];
     c=ReadBlobByte(image);