--- trunk/src/selection/SelectionCompiler.cpp 2013/08/19 19:20:32 1931 +++ trunk/src/selection/SelectionCompiler.cpp 2015/03/05 16:30:23 2069 @@ -52,12 +52,12 @@ namespace OpenMD { lineNumbers.clear(); lineIndices.clear(); aatokenCompiled.clear(); - + if (internalCompile()) { return true; } - - int icharEnd; + + std::size_t icharEnd; if ((icharEnd = script.find('\r', ichCurrentCommand)) == std::string::npos && (icharEnd = script.find('\n', ichCurrentCommand)) == std::string::npos) { icharEnd = script.size(); @@ -374,7 +374,7 @@ namespace OpenMD { return false; } cchToken = ichT - ichToken; - return true; + return isInteger(script.substr(ichToken, cchToken).c_str()); } bool SelectionCompiler::lookingAtLookupToken() { @@ -692,7 +692,6 @@ namespace OpenMD { if (token.tok == Token::integer) { int index = boost::any_cast(token.value); int tok = tokPeek(); - std::cout << "Token::to is " << Token::to << ", tok = " << tok << std::endl; if (tok == Token::to) { tokenNext(); tok = tokPeek();