From b5d7902c20ba6b1fcd6a1d0da0f6afdc7bed9fcd Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 28 May 2004 19:23:47 +0000 Subject: Silenced three signed/unsigned comparison compiler warnings. --- Src/Zle/compcore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 22e5a2436..b0411651f 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -1477,7 +1477,7 @@ set_comp_sep(void) sl = strlen(s); if (swe > sl) { swe = sl; - if (strlen(ns) > swe - swb + 1) + if ((int)strlen(ns) > swe - swb + 1) ns[swe - swb + 1] = '\0'; } qs = (issq ? dupstring(s + swe) : rembslash(s + swe)); @@ -1862,8 +1862,8 @@ addmatches(Cadata dat, char **argv) llpl = strlen(lpre); llsl = strlen(lsuf); - if (llpl + strlen(compqiprefix) + strlen(lipre) != origlpre || - llsl + strlen(compqisuffix) + strlen(lisuf) != origlsuf) + if (llpl + (int)strlen(compqiprefix) + (int)strlen(lipre) != origlpre + || llsl + (int)strlen(compqisuffix) + (int)strlen(lisuf) != origlsuf) lenchanged = 1; /* Test if there is an existing -P prefix. */ -- cgit v1.2.3