OSDN Git Service

Fix Visual C++ warning, Program.inc(85): warning C4018: '<' : signed/unsigned mismatch.
authorYaron Keren <yaron.keren@gmail.com>
Tue, 4 Nov 2014 09:22:41 +0000 (09:22 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Tue, 4 Nov 2014 09:22:41 +0000 (09:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221252 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Windows/Program.inc

index 942dfda..db20e21 100644 (file)
@@ -82,7 +82,7 @@ ErrorOr<std::string> sys::findProgramByName(StringRef Name,
   std::u16string PathStorage;
   if (!Paths.empty()) {
     PathStorage.reserve(Paths.size() * MAX_PATH);
-    for (int i = 0; i < Paths.size(); ++i) {
+    for (unsigned i = 0; i < Paths.size(); ++i) {
       if (i)
         PathStorage.push_back(';');
       StringRef P = Paths[i];