Browse Source

ERR: int -> unsigned int.

Brad King 24 years ago
parent
commit
6edfd1104c
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Source/cmFindLibraryCommand.cxx

+ 1 - 3
Source/cmFindLibraryCommand.cxx

@@ -54,13 +54,11 @@ bool cmFindLibraryCommand::Invoke(std::vector<std::string>& args)
   std::string helpString = "Where can the ";
   if(args[1] == "NAMES")
     {
-    int i = 2;
-    while(args[i] != "PATHS" && i < args.size())
+    for(unsigned int i=2; (args[i] != "PATHS" && i < args.size()); ++i)
       {
       helpString = "( ";
       helpString +=  args[i];
       helpString +=  " ";
-      i++;
       }
     }
   else