2017-03-07 01:12:14 -05:00
|
|
|
import micropython
|
|
|
|
|
2023-02-01 03:08:41 -05:00
|
|
|
|
2017-03-07 01:12:14 -05:00
|
|
|
# unsigned ints
|
|
|
|
@micropython.viper
|
|
|
|
def viper_uint() -> uint:
|
|
|
|
return uint(-1)
|
2021-03-15 09:57:36 -04:00
|
|
|
|
|
|
|
|
2017-03-07 01:12:14 -05:00
|
|
|
import sys
|
2021-03-15 09:57:36 -04:00
|
|
|
|
2017-03-07 01:12:14 -05:00
|
|
|
print(viper_uint() == (sys.maxsize << 1 | 1))
|