From 43254d10ab2f9c7088f742b78c754d04103c527f Mon Sep 17 00:00:00 2001 From: cristy Date: Sat, 24 May 2014 23:30:21 +0000 Subject: [PATCH] --- coders/tga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)* -- 2.40.0