提交 38e2f727 编写于 作者: R Rich Felker

fix btowc corner case

btowc is required to interpret its argument by conversion to unsigned
char, unless the argument is equal to EOF. since the conversion to
produces a non-character value anyway, we can just unconditionally
convert, for now.
上级 ee59c296
......@@ -3,5 +3,6 @@
wint_t btowc(int c)
{
c = (unsigned char)c;
return c<128U ? c : EOF;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册