ref: c952dd8a6e1837ebfbcb5ade04f7d66cefa38cbd
parent: b65ea64a583855ae69b685e3c094d0697d86b2c3
author: ISSOtm <[email protected]>
date: Sat Aug 22 22:08:04 EDT 2020
Fix fixed-point constants not working correctly And added a test to check their behavior
--- a/src/asm/lexer.c
+++ b/src/asm/lexer.c
@@ -965,6 +965,7 @@
break;
}
value = value * 10 + (c - '0');
+ divisor *= 10;
}
if (yylval.nConstValue > INT16_MAX || yylval.nConstValue < INT16_MIN)