Skip to content

Commit

Permalink
Fixed warning by casting
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 10, 2021
1 parent 61b9065 commit c48f4da
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 %llu, eof: %llu", (unsigned long long)state->loc, (unsigned long long)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 c48f4da

Please sign in to comment.