src/arguments.c

changeset 66
be2084398c37
parent 57
68018eac46c3
--- a/src/arguments.c	Fri Jun 03 18:13:46 2022 +0200
+++ b/src/arguments.c	Fri Jun 03 20:05:15 2022 +0200
@@ -27,12 +27,12 @@
 #include "arguments.h"
 
 int checkArgument(const char* arg, const char* expected) {
-  int len = strlen(expected);
+  size_t len = strlen(expected);
   int ret = 0;
 
   if (arg[0] == '-') {
     if (arg[1] != '-') {
-      for (int t = 0 ; t < len ; t++) {
+      for (size_t t = 0 ; t < len ; t++) {
         ret |= (strchr(arg, expected[t])?1:0) << t;
       }
     }

mercurial