Skip to content

Commit 3ae762e

Browse files
committed
avif: Fix sign-compare warning
1 parent dbfa939 commit 3ae762e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/_avif.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ PyObject *
333333
_encoder_add(AvifEncoderObject *self, PyObject *args) {
334334
uint8_t *rgb_bytes;
335335
Py_ssize_t size;
336-
int duration;
337-
int width;
338-
int height;
336+
unsigned int duration;
337+
unsigned int width;
338+
unsigned int height;
339339
char *mode;
340340
PyObject *is_single_frame = NULL;
341341
PyObject *ret = Py_None;
@@ -351,7 +351,7 @@ _encoder_add(AvifEncoderObject *self, PyObject *args) {
351351

352352
if (!PyArg_ParseTuple(
353353
args,
354-
"z#iiisO",
354+
"z#IIIsO",
355355
(char **)&rgb_bytes,
356356
&size,
357357
&duration,

0 commit comments

Comments
 (0)