Fix numeric constant overflow checks

This commit is contained in:
ISSOtm
2020-08-16 02:48:41 +02:00
parent 08867b3cec
commit 3f5f9bcaf0
5 changed files with 14 additions and 11 deletions

View File

@@ -0,0 +1 @@
Success!

View File

@@ -2,7 +2,6 @@
; file doesn't cause a segfault.
bar: MACRO
WARN ""
ENDM
foo: bar baz\

View File

@@ -1 +1 @@
$0

View File

@@ -3,6 +3,6 @@ warning: overflow.asm(24): [-Wdiv]
warning: overflow.asm(25): [-Wdiv]
Division of -2147483648 by -1 yields -2147483648
warning: overflow.asm(39): [-Wlarge-constant]
Integer constant '4294967296' is too large
Integer constant is too large
warning: overflow.asm(42): [-Wlarge-constant]
Graphics constant '`333333333' is too long
Graphics constant is too long, only 8 first pixels considered