mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #977 from guanqun/simplify-with-selecttoken
simplify two statements with selectToken()
This commit is contained in:
commit
5c58aa041d
@ -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…
Reference in New Issue
Block a user