py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg.

This commit is contained in:
Damien George
2017-03-25 19:48:18 +11:00
parent ca06fac4a1
commit 6b34107537
11 changed files with 24 additions and 24 deletions

View File

@@ -80,7 +80,7 @@ STATIC mp_obj_t complex_make_new(const mp_obj_type_t *type_in, size_t n_args, si
case 1:
if (MP_OBJ_IS_STR(args[0])) {
// a string, parse it
mp_uint_t l;
size_t l;
const char *s = mp_obj_str_get_data(args[0], &l);
return mp_parse_num_decimal(s, l, true, true, NULL);
} else if (MP_OBJ_IS_TYPE(args[0], &mp_type_complex)) {