Browse Source

simplify two statements with selectToken()

cl-refactor
Lu Guanqun 10 years ago
parent
commit
833164b742
  1. 5
      libsolidity/Scanner.cpp

5
libsolidity/Scanner.cpp

@ -458,10 +458,7 @@ void Scanner::scanToken()
// - -- -=
advance();
if (m_char == '-')
{
advance();
token = Token::DEC;
}
token = selectToken(Token::DEC);
else if (m_char == '=')
token = selectToken(Token::ASSIGN_SUB);
else

Loading…
Cancel
Save