mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fix for token bug, also quick fix for the wei and seconds
This commit is contained in:
parent
6fa5e0fac9
commit
dff1a26f55
@ -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 (
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user