Skip to content

Commit

Permalink
Cast to uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Nov 4, 2024
1 parent 37679c8 commit c93f5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ PyImaging_LibTiffEncoderNew(PyObject *self, PyObject *args) {
);
} else if (type == TIFF_LONG8) {
status = ImagingLibTiffSetField(
&encoder->state, (ttag_t)key_int, PyLong_AsLongLong(value)
&encoder->state, (ttag_t)key_int, (uint64)PyLong_AsLongLong(value)
);

Check warning on line 965 in src/encode.c

View workflow job for this annotation

GitHub Actions / ubuntu-latest Python 3.12

‘uint64’ is deprecated [-Wdeprecated-declarations]
} else {
TRACE(
Expand Down

0 comments on commit c93f5d2

Please sign in to comment.