aboutsummaryrefslogtreecommitdiffstats
path: root/src/charConv.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-01-26 12:46:37 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-26 12:46:37 +0000
commitc3ba1bb95670abd4ba64445fa7edaea9cfa9e387 (patch)
tree0e1374c65c72892b075b7ce841b05a9a04751f7f /src/charConv.c
parent0659d359513107e3ed4b66a471f3cb3939a09521 (diff)
downloadmpd-c3ba1bb95670abd4ba64445fa7edaea9cfa9e387.tar.gz
mpd-c3ba1bb95670abd4ba64445fa7edaea9cfa9e387.tar.xz
mpd-c3ba1bb95670abd4ba64445fa7edaea9cfa9e387.zip
fixed "comparison between signed and unsigned"
Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7146 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/charConv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/charConv.c b/src/charConv.c
index c2ef722a8..306ee9999 100644
--- a/src/charConv.c
+++ b/src/charConv.c
@@ -120,7 +120,7 @@ char *char_conv_str(char *dest, char *string)
iconv(char_conv_iconv, &string, &inleft, &bufferPtr,
&outleft);
if (outleft == BUFFER_SIZE
- || (err == -1L && errno != E2BIG)) {
+ || (err == (size_t)-1L && errno != E2BIG)) {
return NULL;
}
memcpy(dest + retlen, buffer, BUFFER_SIZE - outleft);