Skip to content

Commit 76f8ced

Browse files
committed
mp_binary_get_val(): Fix value type.
1 parent 60a0d3f commit 76f8ced

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/binary.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int mp_binary_get_size(char typecode) {
4242
}
4343

4444
mp_obj_t mp_binary_get_val(char typecode, void *p, int index) {
45-
int val = 0;
45+
machine_int_t val = 0;
4646
switch (typecode) {
4747
case 'b':
4848
val = ((int8_t*)p)[index];

0 commit comments

Comments
 (0)