circuitpython/tests/micropython/viper_addr.py.exp
Damien George 3e02b1d19a py/viper: Allow casting of Python integers to viper pointers.
This allows you to pass a number (being an address) to a viper function
that expects a pointer, and also allows casting of integers to pointers
within viper functions.

This was actually the original behaviour, but it regressed due to native
type identifiers being promoted to 4 bits in width.
2016-02-09 13:29:20 +00:00

7 lines
110 B
Plaintext

<class 'bytearray'>
<class 'int'>
bytearray(b'0000')
bytearray(b'1111')
bytearray(b'2222')
bytearray(b'2233')