Skip to content

Commit

Permalink
Merge pull request #5535 from radarhere/tiff_format
Browse files Browse the repository at this point in the history
Fixed format warning
  • Loading branch information
hugovk committed Jun 14, 2021
2 parents 85d009c + e00af25 commit 8f55c95
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 %llu, eof: %llu", state->loc, state->eof);
TIFFError("_tiffReadProc", "Invalid Read at loc %" PRIu64 ", eof: %" PRIu64, 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 8f55c95

Please sign in to comment.