circuitpython/tests/micropython/viper_misc_intbig.py
Scott Shawcroft b057fb8a4b
codeformat
2021-04-19 22:22:44 -07:00

12 lines
161 B
Python

import micropython
# unsigned ints
@micropython.viper
def viper_uint() -> uint:
return uint(-1)
import sys
print(viper_uint() == (sys.maxsize << 1 | 1))