From 1203fe528a053ee99bada0b3851429dc3fc8fa3c Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 24 Oct 2019 06:15:20 -0400 Subject: [PATCH] ... --- coders/miff.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/coders/miff.c b/coders/miff.c index 080998b66..59941bcc1 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -267,7 +267,7 @@ static void PushRunlengthPacket(Image *image,const unsigned char *pixels, if (image->alpha_trait != UndefinedPixelTrait) { p=PushShortPixel(MSBEndian,p,&quantum); - pixel->alpha=(MagickRealType) (quantum >> (image->depth- + pixel->alpha=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); } break; @@ -281,7 +281,7 @@ static void PushRunlengthPacket(Image *image,const unsigned char *pixels, if (image->alpha_trait != UndefinedPixelTrait) { p=PushLongPixel(MSBEndian,p,&quantum); - pixel->alpha=(MagickRealType) (quantum >> (image->depth- + pixel->alpha=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); } break; @@ -326,29 +326,29 @@ static void PushRunlengthPacket(Image *image,const unsigned char *pixels, quantum; p=PushShortPixel(MSBEndian,p,&quantum); - pixel->red=(MagickRealType) (quantum >> (image->depth- + pixel->red=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); pixel->green=pixel->red; pixel->blue=pixel->red; if (IsGrayColorspace(image->colorspace) == MagickFalse) { p=PushShortPixel(MSBEndian,p,&quantum); - pixel->green=(MagickRealType) (quantum >> (image->depth- + pixel->green=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); p=PushShortPixel(MSBEndian,p,&quantum); - pixel->blue=(MagickRealType) (quantum >> (image->depth- + pixel->blue=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); } if (image->colorspace == CMYKColorspace) { p=PushShortPixel(MSBEndian,p,&quantum); - pixel->black=(MagickRealType) (quantum >> (image->depth- + pixel->black=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); } if (image->alpha_trait != UndefinedPixelTrait) { p=PushShortPixel(MSBEndian,p,&quantum); - pixel->alpha=(MagickRealType) (quantum >> (image->depth- + pixel->alpha=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); } break; @@ -360,29 +360,29 @@ static void PushRunlengthPacket(Image *image,const unsigned char *pixels, quantum; p=PushLongPixel(MSBEndian,p,&quantum); - pixel->red=(MagickRealType) (quantum >> (image->depth- + pixel->red=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); pixel->green=pixel->red; pixel->blue=pixel->red; if (IsGrayColorspace(image->colorspace) == MagickFalse) { p=PushLongPixel(MSBEndian,p,&quantum); - pixel->green=(MagickRealType) (quantum >> (image->depth- + pixel->green=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); p=PushLongPixel(MSBEndian,p,&quantum); - pixel->blue=(MagickRealType) (quantum >> (image->depth- + pixel->blue=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); } if (image->colorspace == CMYKColorspace) { p=PushLongPixel(MSBEndian,p,&quantum); - pixel->black=(MagickRealType) (quantum >> (image->depth- + pixel->black=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); } if (image->alpha_trait != UndefinedPixelTrait) { p=PushLongPixel(MSBEndian,p,&quantum); - pixel->alpha=(MagickRealType) (quantum >> (image->depth- + pixel->alpha=(MagickRealType) ((size_t) quantum >> (image->depth- MAGICKCORE_QUANTUM_DEPTH)); } break; -- 2.40.0