mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use boost::starts_with
This commit is contained in:
parent
06fe61f89b
commit
c70d73809a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user