From: Bartosz Golaszewski Date: Wed, 6 Jun 2018 15:01:44 +0000 (+0200) Subject: bindings: python: fix a warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3c660a3ec524b52c6f51fb4ffe2b2388c2b0f845;p=qemu-gpiodev%2Flibgpiod.git bindings: python: fix a warning On some architectures we get a 'comparison between signed and unsigned integer' warning when building python bindings. Fix it by changing the type of the variable used for offset to unsigned int. Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/python/gpiodmodule.c b/bindings/python/gpiodmodule.c index d55e867..88d90bf 100644 --- a/bindings/python/gpiodmodule.c +++ b/bindings/python/gpiodmodule.c @@ -1562,7 +1562,7 @@ gpiod_Chip_get_all_lines(gpiod_ChipObject *self) struct gpiod_line_bulk bulk; gpiod_LineObject *line_obj; struct gpiod_line *line; - Py_ssize_t offset; + unsigned int offset; PyObject *list; int rv;