diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-03 17:44:14 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-03 17:44:14 +0000 |
commit | 42f3de924bc3e285490f5f293955bc6d7e5a0edf (patch) | |
tree | c33a59825957ca5561bb7bb5038575ff052d5245 /py/pfenv.c | |
parent | 877dba3e1a76d151c0d93c88bcfaac62ecfe3799 (diff) |
py: Convert [u]int to mp_[u]int_t where appropriate.
Addressing issue #50.
Diffstat (limited to 'py/pfenv.c')
-rw-r--r-- | py/pfenv.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |