From: cristy Date: Sat, 24 May 2014 23:30:21 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2291 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43254d10ab2f9c7088f742b78c754d04103c527f;p=imagemagick --- diff --git a/coders/tga.c b/coders/tga.c index d074da52c..308cfb267 100644 --- a/coders/tga.c +++ b/coders/tga.c @@ -507,10 +507,10 @@ static Image *ReadTGAImage(const ImageInfo *image_info, SetPixelAlpha(image,ClampToQuantum(pixel.alpha),q); q+=GetPixelChannels(image); } - if (((unsigned char) (tga_info.attributes & 0xc0) >> 6) == 4) + if (((tga_info.attributes & 0xc0) >> 6) == 4) offset+=4; else - if (((unsigned char) (tga_info.attributes & 0xc0) >> 6) == 2) + if (((tga_info.attributes & 0xc0) >> 6) == 2) offset+=2; else offset++; @@ -882,7 +882,7 @@ static MagickBooleanType WriteTGAImage(const ImageInfo *image_info,Image *image, { if (count > 0) { - WriteBlobByte(image,(unsigned char) (--count)); + (void) WriteBlobByte(image,(unsigned char) (--count)); while (count >= 0) { WriteTGAPixel(image,tga_info.image_type,p-((count+1)*