fix breakage due to converting a return type to size_t in iconv...
authorRich Felker <dalias@aerifal.cx>
Thu, 7 Apr 2011 20:10:44 +0000 (16:10 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 7 Apr 2011 20:10:44 +0000 (16:10 -0400)
src/locale/iconv.c

index f9f80174fabf53b9607f712b84baca3d0f21e699..e1b00de370214e5412cae448f27775d368071c1d 100644 (file)
@@ -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;
        }