From: cristy Date: Wed, 5 Jan 2011 15:45:02 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~8320 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afee4d36aae894a74306a3c492437ca55dce2bad;p=imagemagick --- diff --git a/coders/png.c b/coders/png.c index 90bbd5390..c4c862452 100644 --- a/coders/png.c +++ b/coders/png.c @@ -2697,9 +2697,9 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, if (ping_color_type == 4) { q->opacity=(*p << 8) | *(p+1); - q->opacity*=65537U; + q->opacity*=65537L; q->opacity=(Quantum) GetAlphaPixelComponent(q); - if (p->opacity != OpaqueOpacity) + if (q->opacity != OpaqueOpacity) found_transparent_pixel = MagickTrue; p+=2; q++;