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 0af2d3f
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 failure on line 964 in src/encode.c

View workflow job for this annotation

GitHub Actions / ubuntu-latest Python 3.12

‘UINT64’ undeclared (first use in this function); did you mean ‘uint64’?

Check failure on line 964 in src/encode.c

View workflow job for this annotation

GitHub Actions / ubuntu-latest Python 3.12

expected ‘)’ before ‘PyLong_AsLongLong’
);
} else {
TRACE(
Expand Down

0 comments on commit 0af2d3f

Please sign in to comment.