Skip to content

Commit c93f5d2

Browse files
committed
Cast to uint64
1 parent 37679c8 commit c93f5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/encode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ PyImaging_LibTiffEncoderNew(PyObject *self, PyObject *args) {
961961
);
962962
} else if (type == TIFF_LONG8) {
963963
status = ImagingLibTiffSetField(
964-
&encoder->state, (ttag_t)key_int, PyLong_AsLongLong(value)
964+
&encoder->state, (ttag_t)key_int, (uint64)PyLong_AsLongLong(value)
965965
);
966966
} else {
967967
TRACE(

0 commit comments

Comments
 (0)