about summary refs log tree commit diff
path: root/rfc2231.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-10-06 13:15:28 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-10-06 13:15:28 +0200
commit5f45b7d53361bd32ce390e12f814660a98f86aa9 (patch)
tree53612a69e99fcb3c30392e9b682da3b0ff844f3e /rfc2231.c
parentce9ac3aff4bd2fe58132c3ec194269abe4fda4a7 (diff)
downloadmblaze-5f45b7d53361bd32ce390e12f814660a98f86aa9.tar.gz
mblaze-5f45b7d53361bd32ce390e12f814660a98f86aa9.tar.xz
mblaze-5f45b7d53361bd32ce390e12f814660a98f86aa9.zip
use appropriate integer types
Mainly found with clang -Wconversion -Wshorten-64-to-32.
Diffstat (limited to 'rfc2231.c')
-rw-r--r--rfc2231.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rfc2231.c b/rfc2231.c
index c0edaff..cc36970 100644
--- a/rfc2231.c
+++ b/rfc2231.c
@@ -111,8 +111,8 @@ found_plain:
 	size_t dstlen = dst - dststart;
 	dst = dststart;
 
-	int r = iconv(ic, &dst, &dstlen, &tmpend, &tmplen);
-	if (r < 0) {
+	size_t r = iconv(ic, &dst, &dstlen, &tmpend, &tmplen);
+	if (r == (size_t)-1) {
 		free(tmp);
 		return 1;
 	}