From 49326f54926b38b763a6ab60996e144542465b15 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sat, 26 Oct 2013 05:25:14 -0700 Subject: [PATCH] Correctly use string::npos --- Frameworks/GME/gme/Bml_Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frameworks/GME/gme/Bml_Parser.cpp b/Frameworks/GME/gme/Bml_Parser.cpp index 1735ec47a..fc2463ffc 100644 --- a/Frameworks/GME/gme/Bml_Parser.cpp +++ b/Frameworks/GME/gme/Bml_Parser.cpp @@ -228,7 +228,7 @@ void Bml_Parser::parseDocument( const char * source ) last_indent = *(indents.end() - 1); indents.pop_back(); size_t colon = current_path.find_last_of( ':' ); - if ( colon != ~0 ) current_path.resize( colon ); + if ( colon != std::string::npos ) current_path.resize( colon ); else current_path.resize( 0 ); } last_indent = indent;