From 5bfcaf91a5455a7c90ae620399e3d94575b4ab29 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 8 Nov 2024 22:44:35 +0100 Subject: [PATCH] Adding missing typecast. --- coders/tiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coders/tiff.c b/coders/tiff.c index a8979d69a..c5b4af10e 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -1714,8 +1714,8 @@ static Image *ReadTIFFImage(const ImageInfo *image_info, pad=(size_t) MagickMax((ssize_t) samples_per_pixel+ extra_samples-3,0); } - status=SetQuantumPad(image,quantum_info,pad*((bits_per_sample+7) >> - 3)); + status=SetQuantumPad(image,quantum_info,pad* + (size_t) ((bits_per_sample+7) >> 3)); if (status == MagickFalse) ThrowTIFFException(ResourceLimitError,"MemoryAllocationFailed"); }