X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Fungetc.c;h=bc629d4ca511f812976abb93224e2732e0788e6e;hb=f6ecd0c296181bf6a2a7f54e3406c846500e8e63;hp=180673a47663ad57b11d3e6525c35cc23858939a;hpb=bff78954995b115e469aadb7636357798978fffd;p=musl 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; }