summaryrefslogtreecommitdiff
path: root/py/objint_mpz.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-02-16 16:41:43 +1100
committerDamien George <damien.p.george@gmail.com>2017-02-16 16:51:17 +1100
commitda36f5232dcf02c448ee9933e358b711cfe03f30 (patch)
tree4c044d4158ffd76203b6532fc96fc56895b6398b /py/objint_mpz.c
parentfa5a591757569136a444715cce2248b63ad73512 (diff)
py/objint: Convert mp_uint_t to size_t where appropriate.
Diffstat (limited to 'py/objint_mpz.c')
-rw-r--r--py/objint_mpz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objint_mpz.c b/py/objint_mpz.c
index 2b27df4f6..2cdf22505 100644
--- a/py/objint_mpz.c
+++ b/py/objint_mpz.c
@@ -407,9 +407,9 @@ 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) {
mp_obj_int_t *o = mp_obj_int_new_mpz();
- mp_uint_t n = mpz_set_from_str(&o->mpz, *str, len, neg, base);
+ size_t n = mpz_set_from_str(&o->mpz, *str, len, neg, base);
*str += n;
return MP_OBJ_FROM_PTR(o);
}