about summary refs log tree commit diff
path: root/rfc2047.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 /rfc2047.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 'rfc2047.c')
-rw-r--r--rfc2047.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc2047.c b/rfc2047.c
index 6d4760a..f739269 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -215,7 +215,7 @@ blaze822_decode_rfc2047(char *dst, char *src, size_t dlen, char *tgtenc)
 		}
 
 		decchunk = dec;
-		int r = iconv(ic, &dec, &declen, &dst, &dlen);
+		ssize_t r = iconv(ic, &dec, &declen, &dst, &dlen);
 		if (r < 0) {
 			if (errno == E2BIG) {
 				break;