projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix breakage due to converting a return type to size_t in iconv...
[musl]
/
src
/
locale
/
iconv.c
diff --git
a/src/locale/iconv.c
b/src/locale/iconv.c
index
f9f8017
..
e1b00de
100644
(file)
--- 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;
{
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;
}
errno = EINVAL;
return (iconv_t)-1;
}