musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/ungetc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/ungetc.c')
-rw-r--r--src/stdio/ungetc.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/ungetc.c b/src/stdio/ungetc.c
index 180673a4..bc629d4c 100644
--- a/src/stdio/ungetc.c
+++ b/src/stdio/ungetc.c
@@ -16,5 +16,5 @@ int ungetc(int c, FILE *f)
f->flags &= ~F_EOF;
FUNLOCK(f);
- return c;
+ return (unsigned char)c;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月12日 01:57:02 +0000

AltStyle によって変換されたページ (->オリジナル) /