Skip to content

Commit bc2ed8c

Browse files
committed
tests/extmod/uctypes_array_assign_le: Fix buffer.
Structure descriptor in test extmod/uctypes_array_assign_le is 6 bytes long, due to member "arr3" having length 4 (2 * UINT16) and offset 2, but only 5 bytes are allocated. Increased buffer length to 6 bytes. Signed-off-by: Duncan Lowther <[email protected]>
1 parent ae77836 commit bc2ed8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/extmod/uctypes_array_assign_le.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"arr8": (uctypes.ARRAY | 1, 1, {"l": uctypes.UINT32 | 0}),
1919
}
2020

21-
data = bytearray(5)
21+
data = bytearray(6)
2222

2323
S = uctypes.struct(uctypes.addressof(data), desc, uctypes.LITTLE_ENDIAN)
2424

0 commit comments

Comments
 (0)