From: Axel Viala Date: Thu, 24 Mar 2022 16:01:01 +0000 (+0100) Subject: Fix warning: comparison of integer expressions of different signedness: ‘int’ and... X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~2^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0cfa2ed067081de20984b69d321e14e638b931cf;p=babl.git Fix warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] --- diff --git a/babl/base/formats.c b/babl/base/formats.c index bbdedf3..03488c4 100644 --- a/babl/base/formats.c +++ b/babl/base/formats.c @@ -35,7 +35,7 @@ BABL_SIMD_SUFFIX (babl_formats_init) (void) babl_type_from_id (BABL_U16), babl_type_from_id (BABL_U32) }; - for (int i = 0; i < sizeof (types)/sizeof(types[0]);i++) + for (size_t i = 0; i < sizeof (types) / sizeof(types[0]); i++) { const Babl *type = types[i];