Skip to content

Commit

Permalink
Adding missing typecast.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 8, 2024
1 parent 353ddbc commit 5bfcaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coders/tiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 5bfcaf9

Please sign in to comment.