summaryrefslogtreecommitdiffstatshomepage
path: root/py/objcomplex.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-25 19:48:18 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-29 12:56:45 +1100
commit6b341075376705ee1fe9e003b76b09afa59778f4 (patch)
tree2bcf12db2528b718692b7e9a6fc50547413b749f /py/objcomplex.c
parentca06fac4a1d3bc0a4b8178e11504d44a86c955ef (diff)
downloadmicropython-6b341075376705ee1fe9e003b76b09afa59778f4.tar.gz
micropython-6b341075376705ee1fe9e003b76b09afa59778f4.zip
py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg.
Diffstat (limited to 'py/objcomplex.c')
-rw-r--r--py/objcomplex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objcomplex.c b/py/objcomplex.c
index 426e76e5f7..8118fb8138 100644
--- a/py/objcomplex.c
+++ b/py/objcomplex.c
@@ -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)) {