From 9fb0f8dea203e2f3dd2ea715924c6ac08519e523 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 6 Mar 2008 16:42:54 +0000 Subject: Fixed two compiler warnings about comparing signed/unsigned. --- Src/Zle/zle_utils.c | 4 ++-- 1 file 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; -- cgit 1.4.1