Use std::string::size_type for for ColonPos to stop gcc from giving a warning

llvm-svn: 8811
This commit is contained in:
Alkis Evlogimenos
2003-10-01 22:49:22 +00:00
parent 34e1acb5dc
commit 6e739d0a3c

View 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";