author | Rich Felker <dalias@aerifal.cx> | 2019年10月18日 21:11:44 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019年10月18日 21:11:44 -0400 |
commit | f6ecd0c296181bf6a2a7f54e3406c846500e8e63 (patch) | |
tree | 17f37f0b034b3df439b2d76a5aa5bd9492a88065 /src/stdio | |
parent | bff78954995b115e469aadb7636357798978fffd (diff) | |
download | musl-f6ecd0c296181bf6a2a7f54e3406c846500e8e63.tar.gz |
-rw-r--r-- | src/stdio/ungetc.c | 2 |
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; } |