Skip to content

Commit ab5689b

Browse files
committed
py/objarray: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
1 parent 64a4f11 commit ab5689b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

py/objarray.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ STATIC mp_obj_t array_make_new(const mp_obj_type_t *type_in, size_t n_args, size
162162
mp_arg_check_num(n_args, n_kw, 1, 2, false);
163163

164164
// get typecode
165-
mp_uint_t l;
166-
const char *typecode = mp_obj_str_get_data(args[0], &l);
165+
const char *typecode = mp_obj_str_get_str(args[0]);
167166

168167
if (n_args == 1) {
169168
// 1 arg: make an empty array

0 commit comments

Comments
 (0)