mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Remove undefined behavior from shifts
`asl` and `asr` in `src/link/patch.c` courtesy of @pinobatch, and rearranged in RGBASM evaluators.
This commit is contained in:
@@ -2,10 +2,8 @@ warning: overflow.asm(24): [-Wdiv]
|
||||
Division of min value by -1
|
||||
warning: overflow.asm(25): [-Wdiv]
|
||||
Division of min value by -1
|
||||
warning: overflow.asm(34): [-Wshift]
|
||||
Left shift of negative value: -1
|
||||
warning: overflow.asm(35): [-Wshift]
|
||||
Left shift of negative value: -1
|
||||
Shifting negative value -1
|
||||
warning: overflow.asm(39): [-Wlarge-constant]
|
||||
Integer constant '4294967296' is too large
|
||||
warning: overflow.asm(42): [-Wlarge-constant]
|
||||
|
||||
Reference in New Issue
Block a user