summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-07 16:10:44 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-07 16:10:44 -0400
commitbb8d3d00e239f1929af29c441eb729132ffeed83 (patch)
tree51ad7ec3df679de5235b3d406a7798d6c9540b82
parent6682ed1e744dab88f22b9188e3be5746abbae06e (diff)
downloadmusl-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.c2
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;
}