Change comment style

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo van Kemenade 2024-04-28 02:49:42 -06:00 committed by GitHub
parent aa34ca7573
commit 5597f618a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -116,8 +116,8 @@ encode_loop:
st->head = st->codes[st->probe] >> 20; st->head = st->codes[st->probe] >> 20;
goto encode_loop; goto encode_loop;
} else { } else {
/* Reprobe decrement must be non-zero and relatively prime to table // Reprobe decrement must be non-zero and relatively prime to table
* size. So, any odd positive number for power-of-2 size. */ // size. So, any odd positive number for power-of-2 size.
if ((st->probe -= ((st->tail << 2) | 1)) < 0) { if ((st->probe -= ((st->tail << 2) | 1)) < 0) {
st->probe += TABLE_SIZE; st->probe += TABLE_SIZE;
} }

View File

@ -414,8 +414,7 @@ _decodeTile(
if (tile_bytes_size > ((tile_length * state->bits / planes + 7) / 8) * tile_width) { if (tile_bytes_size > ((tile_length * state->bits / planes + 7) / 8) * tile_width) {
// If the tile size as expected by LibTiff isn't what we're expecting, abort. // If the tile size as expected by LibTiff isn't what we're expecting, abort.
// man: TIFFTileSize returns the equivalent size for a tile of data as it // man: TIFFTileSize returns the equivalent size for a tile of data as it
// would be returned in a // would be returned in a call to TIFFReadTile ...
// call to TIFFReadTile ...
state->errcode = IMAGING_CODEC_BROKEN; state->errcode = IMAGING_CODEC_BROKEN;
return -1; return -1;
} }
@ -507,8 +506,7 @@ _decodeStrip(
if (strip_size > (unpacker_row_byte_size * rows_per_strip)) { if (strip_size > (unpacker_row_byte_size * rows_per_strip)) {
// If the strip size as expected by LibTiff isn't what 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 // man: TIFFStripSize returns the equivalent size for a strip of data as it
// would be returned in a // would be returned in a call to TIFFReadEncodedStrip ...
// call to TIFFReadEncodedStrip ...
state->errcode = IMAGING_CODEC_BROKEN; state->errcode = IMAGING_CODEC_BROKEN;
return -1; return -1;
} }