diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-29 00:00:14 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-29 00:01:55 +0800 |
commit | c70d73809a6b36305f65e4ecb68acc3f63c7b304 (patch) | |
tree | 74b0946f9aee14092a38352010231aba8aed94ce /libsolidity | |
parent | 06fe61f89bc3f576176a665b851d9b95f9175618 (diff) | |
download | dexon-solidity-c70d73809a6b36305f65e4ecb68acc3f63c7b304.tar.gz dexon-solidity-c70d73809a6b36305f65e4ecb68acc3f63c7b304.tar.zst dexon-solidity-c70d73809a6b36305f65e4ecb68acc3f63c7b304.zip |
Use boost::starts_with
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp index 2df31eed..403f4b79 100644 --- a/libsolidity/ast/AST.cpp +++ b/libsolidity/ast/AST.cpp @@ -534,7 +534,7 @@ bool Literal::isHexNumber() const { if (token() != Token::Number) return false; - return value().substr(0, 2) == "0x"; + return boost::starts_with(value(), "0x"); } bool Literal::looksLikeAddress() const |