mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-11 20:31:43 +00:00
Refactor lexing of fixed-point numbers (#1915)
This incidentally fixes a bug with too-long fixed-point literals that have precision suffixes.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
error: Invalid fixed-point constant, no significant digits after 'q'
|
||||
error: Fixed-point constant precision must be between 1 and 31
|
||||
at fixed-point-syntax.asm(10)
|
||||
error: Invalid fixed-point constant, no significant digits after 'q'
|
||||
error: Invalid fixed-point constant, no digits after 'q'
|
||||
at fixed-point-syntax.asm(11)
|
||||
error: syntax error, unexpected symbol
|
||||
at fixed-point-syntax.asm(11)
|
||||
@@ -10,6 +10,16 @@ error: Invalid integer constant, trailing '_'
|
||||
at fixed-point-syntax.asm(13)
|
||||
error: Invalid fixed-point constant, '_' after '.'
|
||||
at fixed-point-syntax.asm(14)
|
||||
error: Invalid fixed-point constant, no significant digits after 'q'
|
||||
error: Invalid fixed-point constant, '_' after '.'
|
||||
at fixed-point-syntax.asm(15)
|
||||
Assembly aborted with 7 errors
|
||||
error: Invalid fixed-point constant, '_' after another '_'
|
||||
at fixed-point-syntax.asm(15)
|
||||
error: Invalid fixed-point constant, no digits after 'q'
|
||||
at fixed-point-syntax.asm(16)
|
||||
warning: Precision of fixed-point constant is too large [-Wlarge-constant]
|
||||
at fixed-point-syntax.asm(17)
|
||||
warning: Precision of fixed-point constant is too large [-Wlarge-constant]
|
||||
at fixed-point-syntax.asm(18)
|
||||
warning: Precision of fixed-point constant is too large [-Wlarge-constant]
|
||||
at fixed-point-syntax.asm(19)
|
||||
Assembly aborted with 9 errors
|
||||
|
||||
Reference in New Issue
Block a user