Fix UBSan error with overflowing exponent operator (#1727)

This commit is contained in:
Rangi
2025-07-07 19:08:26 -04:00
committed by GitHub
parent c9765ec158
commit 1a77667409
5 changed files with 27 additions and 11 deletions

View File

@@ -2,7 +2,7 @@ warning: overflow.asm(23): [-Wdiv]
Division of -2147483648 by -1 yields -2147483648
warning: overflow.asm(24): [-Wdiv]
Division of -2147483648 by -1 yields -2147483648
warning: overflow.asm(38): [-Wlarge-constant]
warning: overflow.asm(44): [-Wlarge-constant]
Integer constant is too large
warning: overflow.asm(41): [-Wlarge-constant]
warning: overflow.asm(47): [-Wlarge-constant]
Graphics constant is too long, only first 8 pixels considered