Skip to content

Commit

Permalink
Use PRlu64 instead
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 11, 2021
1 parent c48f4da commit 7fea55c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libImaging/TiffDecode.c
Expand Up @@ -18,6 +18,7 @@
#define uint uint32
#endif

#include <inttypes.h>
#include "TiffDecode.h"

/* Convert C file descriptor to WinApi HFILE if LibTiff was compiled with tif_win32.c
Expand Down Expand Up @@ -56,7 +57,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", (unsigned long long)state->loc, (unsigned long long)state->eof);
TIFFError("_tiffReadProc", "Invalid Read at loc %PRlu64, eof: %PRlu64", 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 7fea55c

Please sign in to comment.