{
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;
}
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);
}
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);
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;