diff options
-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 |