summaryrefslogtreecommitdiffstatshomepage
path: root/lib/utils/printf.c
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 /lib/utils/printf.c
parentfad7d9317b47330533ee6c84ffdaa3e53ad76e46 (diff)
downloadmicropython-4e7107a572b55321f3f483f0293dd19b4f752c9b.tar.gz
micropython-4e7107a572b55321f3f483f0293dd19b4f752c9b.zip
py: Change mp_print_strn_t func type to use size_t for the str length.
Diffstat (limited to 'lib/utils/printf.c')
-rw-r--r--lib/utils/printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/printf.c b/lib/utils/printf.c
index b868d974c2..34bf3eb0fc 100644
--- a/lib/utils/printf.c
+++ b/lib/utils/printf.c
@@ -92,7 +92,7 @@ typedef struct _strn_print_env_t {
size_t remain;
} strn_print_env_t;
-STATIC void strn_print_strn(void *data, const char *str, mp_uint_t len) {
+STATIC void strn_print_strn(void *data, const char *str, size_t len) {
strn_print_env_t *strn_print_env = data;
if (len > strn_print_env->remain) {
len = strn_print_env->remain;