mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow more than 77 fractional digits.
This commit is contained in:
@@ -213,7 +213,7 @@ tuple<Token, unsigned int, unsigned int> fromIdentifierOrKeyword(string const& _
|
||||
int n = parseSize(positionX + 1, _literal.end());
|
||||
if (
|
||||
8 <= m && m <= 256 && m % 8 == 0 &&
|
||||
0 <= n && n <= 80
|
||||
0 <= n && n <= 77
|
||||
) {
|
||||
if (keyword == Token::UFixed)
|
||||
return make_tuple(Token::UFixedMxN, m, n);
|
||||
|
||||
Reference in New Issue
Block a user