From 42f3de924bc3e285490f5f293955bc6d7e5a0edf Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 3 Oct 2014 17:44:14 +0000 Subject: py: Convert [u]int to mp_[u]int_t where appropriate. Addressing issue #50. --- py/pfenv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'py/pfenv.c') diff --git a/py/pfenv.c b/py/pfenv.c index 15793ff76..965636aea 100644 --- a/py/pfenv.c +++ b/py/pfenv.c @@ -46,11 +46,11 @@ static const char pad_spaces[] = " "; static const char pad_zeroes[] = "0000000000000000"; -void pfenv_vstr_add_strn(void *data, const char *str, unsigned int len){ +void pfenv_vstr_add_strn(void *data, const char *str, mp_uint_t len){ vstr_add_strn(data, str, len); } -int pfenv_print_strn(const pfenv_t *pfenv, const char *str, unsigned int len, int flags, char fill, int width) { +int pfenv_print_strn(const pfenv_t *pfenv, const char *str, mp_uint_t len, int flags, char fill, int width) { int left_pad = 0; int right_pad = 0; int pad = width - len; @@ -234,8 +234,8 @@ int pfenv_print_mp_int(const pfenv_t *pfenv, mp_obj_t x, int sgn, int base, int // enough, a dynamic one will be allocated. char stack_buf[sizeof(mp_int_t) * 4]; char *buf = stack_buf; - int buf_size = sizeof(stack_buf); - int fmt_size = 0; + mp_uint_t buf_size = sizeof(stack_buf); + mp_uint_t fmt_size = 0; char *str; if (prec > 1) { -- cgit v1.2.3