From 4de189e249db261989ddee3e7b940ca686b1a068 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 1 Jun 2019 13:20:25 +0200 Subject: [PATCH] Added missing typecast. --- coders/tiff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coders/tiff.c b/coders/tiff.c index 094a95a0e..b4bc0db7f 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -449,9 +449,9 @@ static Image *ReadGROUP4Image(const ImageInfo *image_info, ThrowReaderException(CorruptImageError,"UnexpectedEndOfFile"); length=fwrite("\376\000\003\000\001\000\000\000\000\000\000\000",1,12,file); length=fwrite("\000\001\004\000\001\000\000\000",1,8,file); - length=WriteLSBLong(file,image->columns); + length=WriteLSBLong(file,(unsigned int) image->columns); length=fwrite("\001\001\004\000\001\000\000\000",1,8,file); - length=WriteLSBLong(file,image->rows); + length=WriteLSBLong(file,(unsigned int) image->rows); length=fwrite("\002\001\003\000\001\000\000\000\001\000\000\000",1,12,file); length=fwrite("\003\001\003\000\001\000\000\000\004\000\000\000",1,12,file); length=fwrite("\006\001\003\000\001\000\000\000\000\000\000\000",1,12,file); @@ -462,7 +462,7 @@ static Image *ReadGROUP4Image(const ImageInfo *image_info, length=WriteLSBLong(file,(unsigned int) image_info->orientation); length=fwrite("\025\001\003\000\001\000\000\000\001\000\000\000",1,12,file); length=fwrite("\026\001\004\000\001\000\000\000",1,8,file); - length=WriteLSBLong(file,image->rows); + length=WriteLSBLong(file,(unsigned int) image->rows); length=fwrite("\027\001\004\000\001\000\000\000\000\000\000\000",1,12,file); offset=(ssize_t) ftell(file)-4; length=fwrite("\032\001\005\000\001\000\000\000",1,8,file); -- 2.40.0