]> granicus.if.org Git - imagemagick/commitdiff
Silence warning
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 8 Apr 2018 12:39:46 +0000 (14:39 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 8 Apr 2018 12:39:46 +0000 (14:39 +0200)
coders/tga.c

index b94164bc6a28a671aea3f2b8d6765825470e00b2..53cfb94f3ad7422bbf4042c30964aba55f3c2d99 100644 (file)
@@ -297,7 +297,7 @@ static Image *ReadTGAImage(const ImageInfo *image_info,
       if (comment == (char *) NULL)
         ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
       count=ReadBlob(image,length,(unsigned char *) comment);
-      if (count == length)
+      if (count == (ssize_t) length)
         {
           comment[length]='\0';
           (void) SetImageProperty(image,"comment",comment,exception);