summaryrefslogtreecommitdiff
path: root/py/mpprint.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-11-27 12:19:25 +0000
committerDamien George <damien.p.george@gmail.com>2015-11-29 14:25:04 +0000
commit4e7107a572b55321f3f483f0293dd19b4f752c9b (patch)
tree5cd4068be944446d225fac50688555128f736a38 /py/mpprint.h
parentfad7d9317b47330533ee6c84ffdaa3e53ad76e46 (diff)
py: Change mp_print_strn_t func type to use size_t for the str length.
Diffstat (limited to 'py/mpprint.h')
-rw-r--r--py/mpprint.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/mpprint.h b/py/mpprint.h
index 1770fcffe..6e47409ec 100644
--- a/py/mpprint.h
+++ b/py/mpprint.h
@@ -39,7 +39,7 @@
#define PF_FLAG_ADD_PERCENT (0x100)
#define PF_FLAG_SHOW_OCTAL_LETTER (0x200)
-typedef void (*mp_print_strn_t)(void *data, const char *str, mp_uint_t len);
+typedef void (*mp_print_strn_t)(void *data, const char *str, size_t len);
typedef struct _mp_print_t {
void *data;
@@ -55,7 +55,7 @@ extern const mp_print_t mp_sys_stdout_print;
#endif
int mp_print_str(const mp_print_t *print, const char *str);
-int mp_print_strn(const mp_print_t *print, const char *str, mp_uint_t len, int flags, char fill, int width);
+int mp_print_strn(const mp_print_t *print, const char *str, size_t len, int flags, char fill, int width);
#if MICROPY_PY_BUILTINS_FLOAT
int mp_print_float(const mp_print_t *print, mp_float_t f, char fmt, int flags, char fill, int width, int prec);
#endif