Check for overflow in fixed-point precision suffix (#1918)

Fixes #1917
This commit is contained in:
Rangi
2026-04-07 17:06:54 -04:00
committed by GitHub
parent bcff14b596
commit 9b4b4a581b
10 changed files with 60 additions and 36 deletions
+5 -1
View File
@@ -2,4 +2,8 @@ error: Fixed-point constant precision must be between 1 and 31
at fixed-point-precision.asm(22)
error: Fixed-point constant precision 0 invalid, defaulting to 16
at fixed-point-precision.asm(23)
Assembly aborted with 2 errors
error: Fixed-point constant precision must be between 1 and 31
at fixed-point-precision.asm(24)
error: Fixed-point constant precision 999 invalid, defaulting to 16
at fixed-point-precision.asm(25)
Assembly aborted with 4 errors