aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-29 00:00:14 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-29 00:01:55 +0800
commitc70d73809a6b36305f65e4ecb68acc3f63c7b304 (patch)
tree74b0946f9aee14092a38352010231aba8aed94ce /libsolidity
parent06fe61f89bc3f576176a665b851d9b95f9175618 (diff)
downloaddexon-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.cpp2
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