Use std::string::size_type for for ColonPos to stop gcc from giving a warning
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Wed, 1 Oct 2003 22:49:22 +0000 (22:49 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Wed, 1 Oct 2003 22:49:22 +0000 (22:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8811 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/GraphChecker.cpp

index 4c690b15ca15c69c98219600a12bfc604791e1bc..a01c483ed44dd01f22dc22dfb628b14f189253f1 100644 (file)
@@ -125,7 +125,7 @@ void DSGC::verify(const DSGraph &G) {
     
     for (cl::list<std::string>::iterator I = CheckFlags.begin(),
            E = CheckFlags.end(); I != E; ++I) {
-      unsigned ColonPos = I->rfind(':');
+      std::string::size_type ColonPos = I->rfind(':');
       if (ColonPos == std::string::npos) {
         std::cerr << "Error: '" << *I
                << "' is an invalid value for the --dsgc-check-flags option!\n";