Explorar el Código

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

Rich Felker hace 14 años
padre
commit
bb8d3d00e2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/locale/iconv.c

+ 1 - 1
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;
 	}