Fix fixed-point constants not working correctly

And added a test to check their behavior
This commit is contained in:
ISSOtm committed 2020-10-04 04:46:01 +02:00
1 parent b65ea64a58
commit c952dd8a6e
1 file changed
+1
+1
View File
@@ -965,6 +965,7 @@ static void readFractionalPart(void)
break;
}
value = value * 10 + (c - '0');
divisor *= 10;
}
if (yylval.nConstValue > INT16_MAX || yylval.nConstValue < INT16_MIN)