Only print one warning for too-large integer constants, not one per digit (#1781)

This also makes all too-large integer constants evaluate to 0.
This commit is contained in:
Rangi
2025-08-08 18:58:38 -04:00
committed by GitHub
parent 1574b5b1f7
commit e41ce49698
7 changed files with 88 additions and 58 deletions

View File

@@ -5,4 +5,4 @@ warning: overflow.asm(24): [-Wdiv]
warning: overflow.asm(44): [-Wlarge-constant]
Integer constant is too large
warning: overflow.asm(47): [-Wlarge-constant]
Graphics constant is too long, only first 8 pixels considered
Graphics constant is too large; only first 8 pixels considered