From dd010d453c957320a4cf947ca9539908267b9040 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 8 Apr 2018 14:39:46 +0200 Subject: [PATCH] Silence warning --- coders/tga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/tga.c b/coders/tga.c index b94164bc6..53cfb94f3 100644 --- a/coders/tga.c +++ b/coders/tga.c @@ -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); -- 2.40.0