aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorRJ Catalano <catalanor0220@gmail.com>2015-12-17 04:50:40 +0800
committerRJ Catalano <catalanor0220@gmail.com>2015-12-17 04:50:40 +0800
commitfe04d7f7f7686ae8fa406880b3c3069e60ee1c20 (patch)
tree8fffda3a6ffc1e5ff789aac0ce2ac0f1c6c7de38 /libsolidity
parentf7a1860abd2abe63efcdd9318a54af530e30361c (diff)
downloaddexon-solidity-fe04d7f7f7686ae8fa406880b3c3069e60ee1c20.tar
dexon-solidity-fe04d7f7f7686ae8fa406880b3c3069e60ee1c20.tar.gz
dexon-solidity-fe04d7f7f7686ae8fa406880b3c3069e60ee1c20.tar.bz2
dexon-solidity-fe04d7f7f7686ae8fa406880b3c3069e60ee1c20.tar.lz
dexon-solidity-fe04d7f7f7686ae8fa406880b3c3069e60ee1c20.tar.xz
dexon-solidity-fe04d7f7f7686ae8fa406880b3c3069e60ee1c20.tar.zst
dexon-solidity-fe04d7f7f7686ae8fa406880b3c3069e60ee1c20.zip
added one more test and realized that there was one last change before the parser is perfect
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/parsing/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp
index 3df3ac17..4fad65bb 100644
--- a/libsolidity/parsing/Parser.cpp
+++ b/libsolidity/parsing/Parser.cpp
@@ -1056,7 +1056,7 @@ ASTPointer<Expression> Parser::parsePrimaryExpression()
if (m_scanner->currentToken() == oppositeToken)
break;
else if (m_scanner->currentToken() == Token::Comma)
- if (isArray && (m_scanner->peekNextToken() == (Token::Comma || oppositeToken)))
+ if (isArray && (m_scanner->peekNextToken() == Token::Comma || m_scanner->peekNextToken() == oppositeToken))
fatalParserError(std::string("Expected value in array cell after ',' ."));
m_scanner->next();
}