diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-07 16:10:44 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-07 16:10:44 -0400 |
commit | bb8d3d00e239f1929af29c441eb729132ffeed83 (patch) | |
tree | 51ad7ec3df679de5235b3d406a7798d6c9540b82 | |
parent | 6682ed1e744dab88f22b9188e3be5746abbae06e (diff) | |
download | musl-bb8d3d00e239f1929af29c441eb729132ffeed83.tar.gz musl-bb8d3d00e239f1929af29c441eb729132ffeed83.tar.bz2 musl-bb8d3d00e239f1929af29c441eb729132ffeed83.tar.xz musl-bb8d3d00e239f1929af29c441eb729132ffeed83.zip |
fix breakage due to converting a return type to size_t in iconv...
-rw-r--r-- | src/locale/iconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/iconv.c b/src/locale/iconv.c index f9f80174..e1b00de3 100644 --- a/src/locale/iconv.c +++ b/src/locale/iconv.c @@ -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; } |