Disallow more than 77 fractional digits.

This commit is contained in:
chriseth
2021-10-06 13:55:38 +02:00
parent 96d50431bb
commit 3fe4b0b2c3
9 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -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);