diff options
Diffstat (limited to 'libfmt/libmisc.c')
-rw-r--r-- | libfmt/libmisc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libfmt/libmisc.c b/libfmt/libmisc.c index 134b9f0..04affb7 100644 --- a/libfmt/libmisc.c +++ b/libfmt/libmisc.c @@ -27,23 +27,23 @@ static void libfmt_libc_fct(char character, void *LM_UNUSED(arg)) { } #endif -int __lm_printf(const char *format, ...) { +size_t __lm_printf(const char *format, ...) { va_list va; va_start(va, format); #if LIB_PICO_STDIO /* pico_stdio has already intercepted vprintf for us, and * their stdio_buffered_printer() is better than our * libfmt_libc_fct() because buffering. */ - int ret = vprintf(format, va); + size_t ret = (size_t) vprintf(format, va); #else - int ret = fmt_vfctprintf(libfmt_libc_fct, NULL, format, va); + size_t ret = (size_t) fmt_vfctprintf(libfmt_libc_fct, NULL, format, va); fflush(stdout); #endif va_end(va); return ret; } -int __lm_light_printf(const char *format, ...) { +size_t __lm_light_printf(const char *format, ...) { va_list va; va_start(va, format); #if LIB_PICO_STDIO @@ -52,10 +52,10 @@ int __lm_light_printf(const char *format, ...) { * stdio.c:__wrap_vprintf(); so that's where you'll see the * numbers be different if you're analyzing it. (Also, being * able to skip the stdio_stack_buffer_flush() call.) */ - int ret = fmt_vfctprintf(libfmt_light_fct, NULL, format, va); + size_t ret = (size_t) fmt_vfctprintf(libfmt_light_fct, NULL, format, va); stdio_flush(); #else - int ret = fmt_vfctprintf(libfmt_libc_fct, NULL, format, va); + size_t ret = (size_t) fmt_vfctprintf(libfmt_libc_fct, NULL, format, va); fflush(stdout); #endif va_end(va); |