From 7a5a4fe271d87c8331356673bf91416092f1edc2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 27 Nov 2015 14:03:53 +0000 Subject: [PATCH] unix/unix_mphal: Use size_t instead of mp_uint_t in stdout_tx_strn decls. --- unix/unix_mphal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/unix_mphal.c b/unix/unix_mphal.c index 4d7c7aa053..4ea682f0c8 100644 --- a/unix/unix_mphal.c +++ b/unix/unix_mphal.c @@ -105,13 +105,13 @@ int mp_hal_stdin_rx_chr(void) { return c; } -void mp_hal_stdout_tx_strn(const char *str, mp_uint_t len) { +void mp_hal_stdout_tx_strn(const char *str, size_t len) { int ret = write(1, str, len); (void)ret; // to suppress compiler warning } // cooked is same as uncooked because the terminal does some postprocessing -void mp_hal_stdout_tx_strn_cooked(const char *str, mp_uint_t len) { +void mp_hal_stdout_tx_strn_cooked(const char *str, size_t len) { mp_hal_stdout_tx_strn(str, len); }