提交 bb8d3d00 编写于 作者: R Rich Felker

fix breakage due to converting a return type to size_t in iconv...

上级 6682ed1e
......@@ -310,7 +310,7 @@ iconv_t iconv_open(const char *to, const char *from)
{
size_t f, t;
if ((t = find_charmap(to)) < 0 || (f = find_charmap(from)) < 0) {
if ((t = find_charmap(to))==-1 || (f = find_charmap(from))==-1) {
errno = EINVAL;
return (iconv_t)-1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册