]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Tue, 5 Jun 2018 00:59:29 +0000 (20:59 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 5 Jun 2018 00:59:29 +0000 (20:59 -0400)
MagickCore/channel.c
MagickCore/enhance.c
MagickCore/histogram.c

index 854c6c287b94bde4769681e48a32fe06808cfdb3..65b5ab6cc7ae604167a382d6c98e32915a5abdf4 100644 (file)
@@ -433,7 +433,8 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression,
     {
       case ExtractChannelOp:
       {
-        channel_mask=(ChannelType) (channel_mask | (1 << destination_channel));
+        channel_mask=(ChannelType) (channel_mask |
+          (1UL << destination_channel));
         destination_channel=(PixelChannel) (destination_channel+1);
         break;
       }
@@ -858,7 +859,8 @@ MagickExport Image *SeparateImages(const Image *image,ExceptionInfo *exception)
     PixelTrait traits = GetPixelChannelTraits(image,channel);
     if ((traits == UndefinedPixelTrait) || ((traits & UpdatePixelTrait) == 0))
       continue;
-    separate_image=SeparateImage(image,(ChannelType) (1 << channel),exception);
+    separate_image=SeparateImage(image,(ChannelType) (1UL << channel),
+      exception);
     if (separate_image != (Image *) NULL)
       AppendImageToList(&images,separate_image);
   }
index 3a0db63c337298f2ff0f2763de7accd3049efb0a..676d5f052f3092990410422507d4b03b6b78f5ee 100644 (file)
@@ -146,7 +146,7 @@ MagickExport MagickBooleanType AutoGammaImage(Image *image,
     PixelTrait traits = GetPixelChannelTraits(image,channel);
     if ((traits & UpdatePixelTrait) == 0)
       continue;
-    channel_mask=SetImageChannelMask(image,(ChannelType) (1 << i));
+    channel_mask=SetImageChannelMask(image,(ChannelType) (1UL << i));
     status=GetImageMean(image,&mean,&sans,exception);
     gamma=log(mean*QuantumScale)/log_mean;
     status&=LevelImage(image,0.0,(double) QuantumRange,gamma,exception);
index e8cba5ccd78a65e4f36b19a23add2bbc2a4f8032..8fcdcccad36c3f23a35afbe1f270be1ad7f22a8e 100644 (file)
@@ -935,7 +935,7 @@ MagickExport MagickBooleanType MinMaxStretchImage(Image *image,
     PixelTrait traits = GetPixelChannelTraits(image,channel);
     if ((traits & UpdatePixelTrait) == 0)
       continue;
-    channel_mask=SetImageChannelMask(image,(ChannelType) (1 << i));
+    channel_mask=SetImageChannelMask(image,(ChannelType) (1UL << i));
     status&=GetImageRange(image,&min,&max,exception);
     min+=black;
     max-=white;