diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-25 19:48:18 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-29 12:56:45 +1100 |
commit | 6b341075376705ee1fe9e003b76b09afa59778f4 (patch) | |
tree | 2bcf12db2528b718692b7e9a6fc50547413b749f /py/objint.c | |
parent | ca06fac4a1d3bc0a4b8178e11504d44a86c955ef (diff) |
py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg.
Diffstat (limited to 'py/objint.c')
-rw-r--r-- | py/objint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objint.c b/py/objint.c index ce091549d..2e8fe4f22 100644 --- a/py/objint.c +++ b/py/objint.c @@ -56,7 +56,7 @@ STATIC mp_obj_t mp_obj_int_make_new(const mp_obj_type_t *type_in, size_t n_args, return args[0]; } else if (MP_OBJ_IS_STR_OR_BYTES(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_integer(s, l, 0, NULL); #if MICROPY_PY_BUILTINS_FLOAT @@ -72,7 +72,7 @@ STATIC mp_obj_t mp_obj_int_make_new(const mp_obj_type_t *type_in, size_t n_args, default: { // should be a string, parse it // TODO proper error checking of argument types - mp_uint_t l; + size_t l; const char *s = mp_obj_str_get_data(args[0], &l); return mp_parse_num_integer(s, l, mp_obj_get_int(args[1]), NULL); } |