From 20db46d99121ebf10d9b4e04e8099917cef44bf0 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 19 Aug 2018 23:49:58 +0200 Subject: [PATCH] Corrected typecast. --- coders/tiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/tiff.c b/coders/tiff.c index 36877488d..7baf2e1f9 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -3879,7 +3879,7 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info, } option=GetImageOption(image_info,"tiff:predictor"); if (option != (const char * ) NULL) - predictor=(size_t) strtol(option,(char **) NULL,10); + predictor=(uint16) strtol(option,(char **) NULL,10); if (predictor != 0) (void) TIFFSetField(tiff,TIFFTAG_PREDICTOR,predictor); if ((image->resolution.x != 0.0) && (image->resolution.y != 0.0)) -- 2.40.0