From c7c6849404de59da0f478f9a1938bcbcc3d37ce2 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Wed, 8 Jul 2020 15:18:16 +0100 Subject: [PATCH] Fixed type mismatch in fputc --- photon/libc/stdio/fputc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/photon/libc/stdio/fputc.c b/photon/libc/stdio/fputc.c index bac9bbd..ef4838e 100644 --- a/photon/libc/stdio/fputc.c +++ b/photon/libc/stdio/fputc.c @@ -3,7 +3,8 @@ int fputc(int c, FILE *fp) { - __fio_write(fp, &c, 1); + char ch = c; + __fio_write(fp, &ch, 1); if (__fio_error(fp)) { return EOF; }