fix for token bug, also quick fix for the wei and seconds

This commit is contained in:
RJ Catalano 2016-03-11 15:27:56 -06:00 committed by VoR0220
parent 6fa5e0fac9
commit dff1a26f55
2 changed files with 2 additions and 2 deletions

View File

@ -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 (

View File

@ -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)