Commit ab93321e authored by Henrik Vendelbo's avatar Henrik Vendelbo Committed by Damien George

py/persistentcode: Change "len" type to size_t for mp_obj_str_get_data.

parent f812394c
...@@ -560,7 +560,7 @@ STATIC void save_obj(mp_print_t *print, mp_obj_t o) { ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment