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