diff options
author | chriseth <c@ethdev.com> | 2015-12-19 00:14:57 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-12-19 00:14:57 +0800 |
commit | 6c6295b74e6e93d838672e70109880e27bb5f614 (patch) | |
tree | 282d6f93b68c04ec3aec3b61d3cf7510f666866e | |
parent | 938ed70935a434babb8c52e6a2985b98216b37c6 (diff) | |
parent | e4f713b55bf0af4135b38170c4b8b3509c7ead1a (diff) | |
download | dexon-solidity-6c6295b74e6e93d838672e70109880e27bb5f614.tar.gz dexon-solidity-6c6295b74e6e93d838672e70109880e27bb5f614.tar.zst dexon-solidity-6c6295b74e6e93d838672e70109880e27bb5f614.zip |
Merge pull request #311 from guanqun/correct-boolean-literal-position
correct true/false literal's source
-rw-r--r-- | libsolidity/parsing/Parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index 2b31c385..d53f825f 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -1055,6 +1055,7 @@ ASTPointer<Expression> Parser::parsePrimaryExpression() { case Token::TrueLiteral: case Token::FalseLiteral: + nodeFactory.markEndPosition(); expression = nodeFactory.createNode<Literal>(token, getLiteralAndAdvance()); break; case Token::Number: |