summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpprint.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-10-11 13:20:11 +1100
committerDamien George <damien.p.george@gmail.com>2016-10-11 13:20:11 +1100
commit6dff3df501242d106590a48b5ed382b01a97baea (patch)
tree3988a3d479e5bf5085c4af86c851ca56c22efa19 /py/mpprint.c
parent8bb7d958f173eec58892bc00115516c160f93243 (diff)
downloadmicropython-6dff3df501242d106590a48b5ed382b01a97baea.tar.gz
micropython-6dff3df501242d106590a48b5ed382b01a97baea.zip
py/objint: Use size_t for arguments that measure bytes/sizes.
Diffstat (limited to 'py/mpprint.c')
-rw-r--r--py/mpprint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/mpprint.c b/py/mpprint.c
index 97ea33ad2a..9ad0f3f9a0 100644
--- a/py/mpprint.c
+++ b/py/mpprint.c
@@ -252,8 +252,8 @@ int mp_print_mp_int(const mp_print_t *print, mp_obj_t x, int base, int base_char
// enough, a dynamic one will be allocated.
char stack_buf[sizeof(mp_int_t) * 4];
char *buf = stack_buf;
- mp_uint_t buf_size = sizeof(stack_buf);
- mp_uint_t fmt_size = 0;
+ size_t buf_size = sizeof(stack_buf);
+ size_t fmt_size = 0;
char *str;
if (prec > 1) {