py/persistentcode: Change "len" type to size_t for mp_obj_str_get_data.
This commit is contained in:
parent
f812394c33
commit
ab93321e31
@ -560,7 +560,7 @@ STATIC void save_obj(mp_print_t *print, mp_obj_t o) {
|
|||||||
} else {
|
} else {
|
||||||
obj_type = 'b';
|
obj_type = 'b';
|
||||||
}
|
}
|
||||||
mp_uint_t len;
|
size_t len;
|
||||||
const char *str = mp_obj_str_get_data(o, &len);
|
const char *str = mp_obj_str_get_data(o, &len);
|
||||||
mp_print_bytes(print, &obj_type, 1);
|
mp_print_bytes(print, &obj_type, 1);
|
||||||
mp_print_uint(print, len);
|
mp_print_uint(print, len);
|
||||||
|
Loading…
Reference in New Issue
Block a user