You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
12 lines
202 B
Python
12 lines
202 B
Python
# tests transition from small to large int representation by addition
|
|
|
|
# 31-bit overflow
|
|
i = 0x3fffffff
|
|
print(i + i)
|
|
print(-i + -i)
|
|
|
|
# 63-bit overflow
|
|
i = 0x3fffffffffffffff
|
|
print(i + i)
|
|
print(-i + -i)
|