]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Devtools/ConsoleCmds.cpp
Fixing some warnings of cppcheck
[lugaru.git] / Source / Devtools / ConsoleCmds.cpp
index 57e9f4a8b78150eaefd7fa4b2469bdff77db183f..1453364c27f2a93b058535aa16396da9e70d8f80 100644 (file)
@@ -524,8 +524,8 @@ void ch_type(const char *args)
 
 void ch_path(const char *args)
 {
-    int n = sizeof(pathtypenames) / sizeof(pathtypenames[0]);
-    for (int i = 0; i < n; i++)
+    unsigned int n = sizeof(pathtypenames) / sizeof(pathtypenames[0]);
+    for (unsigned int i = 0; i < n; i++)
         if (stripfx(args, pathtypenames[i])) {
             editorpathtype = i;
             break;