[babl] babl-lut-verify: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long



commit a884849a5f37ed80aa5d0d4c8ffa02e9718937d9
Author: Axel Viala <axel viala darnuria eu>
Date:   Thu Mar 24 17:14:40 2022 +0100

    babl-lut-verify: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long 
unsigned int’ [-Wsign-compare]

 tools/babl-lut-verify.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/tools/babl-lut-verify.c b/tools/babl-lut-verify.c
index bb429b389..2c611e49d 100644
--- a/tools/babl-lut-verify.c
+++ b/tools/babl-lut-verify.c
@@ -269,15 +269,15 @@ int main (int argc, char **argv)
   };
 
 
-  for (int i = 0; i < sizeof (format_sets)/sizeof(format_sets[0]); i++)
+  for (size_t i = 0; i < sizeof (format_sets) / sizeof(format_sets[0]); i++)
   {
-  fprintf (stdout, "%s to %s: ", babl_get_name (format_sets[i][0]),
-                                 babl_get_name (format_sets[i][1])),
-  error = test_generic (format_sets[i][0], format_sets[i][1]);
-  if (error != 0.0)
-    fprintf (stdout, "%.20f\n", error/(PIXELS*4));
-  else
-    fprintf (stdout, "OK\n");
+    fprintf (stdout, "%s to %s: ", babl_get_name (format_sets[i][0]),
+                                  babl_get_name (format_sets[i][1])),
+    error = test_generic (format_sets[i][0], format_sets[i][1]);
+    if (error != 0.0)
+      fprintf (stdout, "%.20f\n", error/(PIXELS*4));
+    else
+      fprintf (stdout, "OK\n");
   }
   }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]