mirror of
git://git.musl-libc.org/musl
synced 2025-04-11 03:31:50 +00:00
fix breakage due to converting a return type to size_t in iconv...
This commit is contained in:
parent
6682ed1e74
commit
bb8d3d00e2
@ -310,7 +310,7 @@ iconv_t iconv_open(const char *to, const char *from)
|
|||||||
{
|
{
|
||||||
size_t f, t;
|
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;
|
errno = EINVAL;
|
||||||
return (iconv_t)-1;
|
return (iconv_t)-1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user