diff options
author | Damien George <damien.p.george@gmail.com> | 2016-10-11 13:20:11 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-10-11 13:20:11 +1100 |
commit | 6dff3df501242d106590a48b5ed382b01a97baea (patch) | |
tree | 3988a3d479e5bf5085c4af86c851ca56c22efa19 /py/mpprint.c | |
parent | 8bb7d958f173eec58892bc00115516c160f93243 (diff) | |
download | micropython-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.c | 4 |
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) { |