Fix $8000_0000 % -1 to warn with -Wdiv like $8000_0000 / -1 does (#2012)

This commit is contained in:
Rangi
2026-07-06 15:08:44 -04:00
committed by GitHub
parent be3fc61859
commit 46a6966b70
6 changed files with 25 additions and 12 deletions
+4
View File
@@ -2,6 +2,10 @@ warning: Division of -2147483648 by -1 yields -2147483648 [-Wdiv]
at overflow.asm(23)
warning: Division of -2147483648 by -1 yields -2147483648 [-Wdiv]
at overflow.asm(24)
warning: Modulo of -2147483648 by -1 yields 0 [-Wdiv]
at overflow.asm(28)
warning: Modulo of -2147483648 by -1 yields 0 [-Wdiv]
at overflow.asm(29)
warning: Integer constant is too large [-Wlarge-constant]
at overflow.asm(44)
warning: Graphics constant has too many digits; only first 8 pixels considered [-Wlarge-constant]