mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Fix typos
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
6e7c0ced68
commit
c00fdc7e30
|
@ -364,7 +364,7 @@ int ImagingLibTiffDecode(Imaging im, ImagingCodecState state, UINT8* buffer, Py_
|
||||||
state->bytes = row_byte_size * tile_length;
|
state->bytes = row_byte_size * tile_length;
|
||||||
|
|
||||||
if (TIFFTileSize(tiff) > state->bytes) {
|
if (TIFFTileSize(tiff) > state->bytes) {
|
||||||
// If the strip size as expected by LibTiff isn't we're expecting, abort.
|
// If the strip size as expected by LibTiff isn't what we're expecting, abort.
|
||||||
state->errcode = IMAGING_CODEC_MEMORY;
|
state->errcode = IMAGING_CODEC_MEMORY;
|
||||||
TIFFClose(tiff);
|
TIFFClose(tiff);
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -437,7 +437,7 @@ int ImagingLibTiffDecode(Imaging im, ImagingCodecState state, UINT8* buffer, Py_
|
||||||
TRACE(("StripSize: %d \n", state->bytes));
|
TRACE(("StripSize: %d \n", state->bytes));
|
||||||
|
|
||||||
if (TIFFStripSize(tiff) > state->bytes) {
|
if (TIFFStripSize(tiff) > state->bytes) {
|
||||||
// If the strip size as expected by LibTiff isn't we're expecting, abort.
|
// If the strip size as expected by LibTiff isn't what we're expecting, abort.
|
||||||
// man: TIFFStripSize returns the equivalent size for a strip of data as it would be returned in a
|
// man: TIFFStripSize returns the equivalent size for a strip of data as it would be returned in a
|
||||||
// call to TIFFReadEncodedStrip ...
|
// call to TIFFReadEncodedStrip ...
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user