diff options
-rw-r--r-- | libsolidity/parsing/Token.cpp | 2 | ||||
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/parsing/Token.cpp b/libsolidity/parsing/Token.cpp index ef817d5d..d3786524 100644 --- a/libsolidity/parsing/Token.cpp +++ b/libsolidity/parsing/Token.cpp @@ -153,7 +153,7 @@ tuple<Token::Value, unsigned int, unsigned int> Token::fromIdentifierOrKeyword(s positionM < positionX && positionX < _literal.end() && *positionX == 'x' && - all_of(positionX + 1, _literal.end(), ::isdigit) + all_of(positionX++, _literal.end(), ::isdigit) ) { int n = parseSize(positionX + 1, _literal.end()); if ( diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index c078dc10..9ead3dcd 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -3617,7 +3617,7 @@ BOOST_AUTO_TEST_CASE(fixed_type_literal_seconds_and_wei) } } )"; - BOOST_CHECK(success(text)); + BOOST_CHECK(!success(text)); } BOOST_AUTO_TEST_CASE(array_declaration_with_fixed_literal) |