mp_binary_get_val(): Fix value type.
This commit is contained in:
parent
60a0d3f1db
commit
76f8cedb52
@ -42,7 +42,7 @@ int mp_binary_get_size(char typecode) {
|
||||
}
|
||||
|
||||
mp_obj_t mp_binary_get_val(char typecode, void *p, int index) {
|
||||
int val = 0;
|
||||
machine_int_t val = 0;
|
||||
switch (typecode) {
|
||||
case 'b':
|
||||
val = ((int8_t*)p)[index];
|
||||
|
Loading…
x
Reference in New Issue
Block a user