From: Alkis Evlogimenos Date: Wed, 1 Oct 2003 22:49:22 +0000 (+0000) Subject: Use std::string::size_type for for ColonPos to stop gcc from giving a warning X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b5c1af4773d371e6d486fe21179d876807fa85db;p=oota-llvm.git Use std::string::size_type for for ColonPos to stop gcc from giving a warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8811 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DataStructure/GraphChecker.cpp b/lib/Analysis/DataStructure/GraphChecker.cpp index 4c690b15ca1..a01c483ed44 100644 --- a/lib/Analysis/DataStructure/GraphChecker.cpp +++ b/lib/Analysis/DataStructure/GraphChecker.cpp @@ -125,7 +125,7 @@ void DSGC::verify(const DSGraph &G) { for (cl::list::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";