From 6dff3df501242d106590a48b5ed382b01a97baea Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 11 Oct 2016 13:20:11 +1100 Subject: py/objint: Use size_t for arguments that measure bytes/sizes. --- py/mpprint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/mpprint.c') 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) { -- cgit v1.2.3