diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-25 19:53:31 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-25 19:53:31 +1100 |
commit | ab5689bc9df27d481c08f8087bf6c4f12b881255 (patch) | |
tree | cae5034331fcc1289a7565a212377cf76811afa4 | |
parent | 64a4f11b2d6f880aa6fb1aaa10b2603d3faa1cd0 (diff) | |
download | micropython-ab5689bc9df27d481c08f8087bf6c4f12b881255.tar.gz micropython-ab5689bc9df27d481c08f8087bf6c4f12b881255.zip |
py/objarray: Use mp_obj_str_get_str instead of mp_obj_str_get_data.
-rw-r--r-- | py/objarray.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/py/objarray.c b/py/objarray.c index af75af9175..05d28c8a8c 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -162,8 +162,7 @@ STATIC mp_obj_t array_make_new(const mp_obj_type_t *type_in, size_t n_args, size mp_arg_check_num(n_args, n_kw, 1, 2, false); // get typecode - mp_uint_t l; - const char *typecode = mp_obj_str_get_data(args[0], &l); + const char *typecode = mp_obj_str_get_str(args[0]); if (n_args == 1) { // 1 arg: make an empty array |