diff options
author | Damien George <damien.p.george@gmail.com> | 2017-02-16 16:41:43 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-02-16 16:51:17 +1100 |
commit | da36f5232dcf02c448ee9933e358b711cfe03f30 (patch) | |
tree | 4c044d4158ffd76203b6532fc96fc56895b6398b /py/objint_longlong.c | |
parent | fa5a591757569136a444715cce2248b63ad73512 (diff) | |
download | micropython-da36f5232dcf02c448ee9933e358b711cfe03f30.tar.gz micropython-da36f5232dcf02c448ee9933e358b711cfe03f30.zip |
py/objint: Convert mp_uint_t to size_t where appropriate.
Diffstat (limited to 'py/objint_longlong.c')
-rw-r--r-- | py/objint_longlong.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objint_longlong.c b/py/objint_longlong.c index dbfb39809a..b798c91cdf 100644 --- a/py/objint_longlong.c +++ b/py/objint_longlong.c @@ -273,7 +273,7 @@ mp_obj_t mp_obj_new_int_from_float(mp_float_t val) { } #endif -mp_obj_t mp_obj_new_int_from_str_len(const char **str, mp_uint_t len, bool neg, mp_uint_t base) { +mp_obj_t mp_obj_new_int_from_str_len(const char **str, size_t len, bool neg, unsigned int base) { // TODO this does not honor the given length of the string, but it all cases it should anyway be null terminated // TODO check overflow mp_obj_int_t *o = m_new_obj(mp_obj_int_t); |