Use unsigned int to store TIFF IFD offsets

This commit is contained in:
Christoph Gohlke 2019-06-27 15:07:52 -07:00 committed by GitHub
parent 119d1c927b
commit 2ebde32852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,9 +503,9 @@ PyImaging_LibTiffDecoderNew(PyObject* self, PyObject* args)
char* rawmode;
char* compname;
int fp;
int ifdoffset;
uint32 ifdoffset;
if (! PyArg_ParseTuple(args, "sssii", &mode, &rawmode, &compname, &fp, &ifdoffset))
if (! PyArg_ParseTuple(args, "sssiI", &mode, &rawmode, &compname, &fp, &ifdoffset))
return NULL;
TRACE(("new tiff decoder %s\n", compname));