about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2008-03-06 16:42:54 +0000
committerWayne Davison <wayned@users.sourceforge.net>2008-03-06 16:42:54 +0000
commit9fb0f8dea203e2f3dd2ea715924c6ac08519e523 (patch)
tree52c05abc6d05249dd2f1084f3b50c704e4467a5c /Src/Zle
parent74c4a9c9bef38871bdab5987822e3ea55d8d85a1 (diff)
downloadzsh-9fb0f8dea203e2f3dd2ea715924c6ac08519e523.tar.gz
zsh-9fb0f8dea203e2f3dd2ea715924c6ac08519e523.tar.xz
zsh-9fb0f8dea203e2f3dd2ea715924c6ac08519e523.zip
Fixed two compiler warnings about comparing signed/unsigned.
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c
index a146b67c0..d702be845 100644
--- a/Src/Zle/zle_utils.c
+++ b/Src/Zle/zle_utils.c
@@ -294,7 +294,7 @@ stringaszleline(char *instr, int incs, int *outll, int *outsz, int *outcs)
 		 * (certainly true for Unicode and unlikely to be false
 		 * in any non-pathological multibyte representation). */
 		cnt = 1;
-	    } else if (cnt > ll) {
+	    } else if (cnt > (size_t)ll) {
 		/*
 		 * Some multibyte implementations return the
 		 * full length of a previous incomplete character
@@ -857,7 +857,7 @@ showmsg(char const *msg)
 		 * Paranoia: only needed if we start in the middle
 		 * of a multibyte string and only in some implementations.
 		 */
-		if (cnt > ulen)
+		if (cnt > (size_t)ulen)
 		    cnt = ulen;
 		n = wcs_nicechar(c, &width, NULL);
 		break;