mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixed problem with var...probably a conversion problem for fixed in size capabilities
adding fixed type tests Removing bitshift and regrouping fixed type tests together
This commit is contained in:
@@ -469,7 +469,7 @@ bool ConstantNumberType::isValidLiteral(Literal const& _literal)
|
||||
{
|
||||
//problem here. If the first digit is a 0 in the string, it won't
|
||||
//turn it into a integer...Using find if not to count the leading 0s.
|
||||
|
||||
|
||||
auto leadingZeroes = find_if_not(
|
||||
radixPoint + 1,
|
||||
_literal.value().end(),
|
||||
|
||||
@@ -153,9 +153,9 @@ tuple<Token::Value, unsigned int, unsigned int> Token::fromIdentifierOrKeyword(s
|
||||
positionM < positionX &&
|
||||
positionX < _literal.end() &&
|
||||
*positionX == 'x' &&
|
||||
all_of(positionX++, _literal.end(), ::isdigit)
|
||||
all_of(++positionX, _literal.end(), ::isdigit)
|
||||
) {
|
||||
int n = parseSize(positionX + 1, _literal.end());
|
||||
int n = parseSize(positionX, _literal.end());
|
||||
if (
|
||||
0 <= m && m <= 256 &&
|
||||
0 <= n && n <= 256 &&
|
||||
|
||||
Reference in New Issue
Block a user