From bb8d3d00e239f1929af29c441eb729132ffeed83 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 7 Apr 2011 16:10:44 -0400 Subject: [PATCH] fix breakage due to converting a return type to size_t in iconv... --- src/locale/iconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1