PythonExtra/tests/micropython/viper_misc_intbig.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
163 B
Python
Raw Permalink Normal View History

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