2017-03-07 07:12:14 +01:00
|
|
|
import micropython
|
|
|
|
|
2023-02-01 13:38:41 +05:30
|
|
|
|
2017-03-07 07:12:14 +01:00
|
|
|
# unsigned ints
|
|
|
|
@micropython.viper
|
|
|
|
def viper_uint() -> uint:
|
|
|
|
return uint(-1)
|
2021-03-15 19:27:36 +05:30
|
|
|
|
|
|
|
|
2017-03-07 07:12:14 +01:00
|
|
|
import sys
|
2021-03-15 19:27:36 +05:30
|
|
|
|
2017-03-07 07:12:14 +01:00
|
|
|
print(viper_uint() == (sys.maxsize << 1 | 1))
|