Cast to uint64_t

This commit is contained in:
Andrew Murray 2024-11-05 07:16:49 +11:00
parent 37679c8673
commit b6413cd588

View File

@ -961,7 +961,7 @@ PyImaging_LibTiffEncoderNew(PyObject *self, PyObject *args) {
); );
} else if (type == TIFF_LONG8) { } else if (type == TIFF_LONG8) {
status = ImagingLibTiffSetField( status = ImagingLibTiffSetField(
&encoder->state, (ttag_t)key_int, PyLong_AsLongLong(value) &encoder->state, (ttag_t)key_int, (uint64_t)PyLong_AsLongLong(value)
); );
} else { } else {
TRACE( TRACE(