2017-03-07 07:12:14 +01:00
|
|
|
import micropython
|
|
|
|
|
2023-02-02 11:51:48 +11:00
|
|
|
|
2017-03-07 07:12:14 +01:00
|
|
|
# unsigned ints
|
|
|
|
@micropython.viper
|
|
|
|
def viper_uint() -> uint:
|
|
|
|
return uint(-1)
|
2020-03-22 21:26:08 -05:00
|
|
|
|
|
|
|
|
2020-06-18 11:19:14 +02:00
|
|
|
import usys
|
2020-03-22 21:26:08 -05:00
|
|
|
|
2020-06-18 11:19:14 +02:00
|
|
|
print(viper_uint() == (usys.maxsize << 1 | 1))
|