mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix UBSan error with overflowing exponent operator (#1727)
This commit is contained in:
@@ -34,6 +34,12 @@ def x = x << 1
|
||||
dl -1 << 1
|
||||
print_x
|
||||
|
||||
def x = 2 ** 31
|
||||
print_x
|
||||
|
||||
def x = 5 ** 29
|
||||
print_x
|
||||
|
||||
def x = 4294967295
|
||||
def x = 4294967296
|
||||
|
||||
|
||||
Reference in New Issue
Block a user