Skip to content

Commit

Permalink
Use PRIu64 to fix format warning
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 11, 2021
1 parent 20bd9e9 commit e00af25
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 e00af25

Please sign in to comment.