Skip to content

Commit

Permalink
Merge pull request #5305 from lukegb/bug/format-strings
Browse files Browse the repository at this point in the history
Fix -Wformat error in TiffDecode
  • Loading branch information
radarhere committed Mar 11, 2021
2 parents 21da5b1 + 68b655f commit f91f93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libImaging/TiffDecode.c
Expand Up @@ -56,7 +56,7 @@ _tiffReadProc(thandle_t hdata, tdata_t buf, tsize_t size) {
dump_state(state);

if (state->loc > state->eof) {
TIFFError("_tiffReadProc", "Invalid Read at loc %d, eof: %d", state->loc, state->eof);
TIFFError("_tiffReadProc", "Invalid Read at loc %llu, eof: %llu", state->loc, state->eof);
return 0;
}
to_read = min(size, min(state->size, (tsize_t)state->eof) - (tsize_t)state->loc);
Expand Down

0 comments on commit f91f93e

Please sign in to comment.