about summary refs log tree commit diff
path: root/Src/Zle/compcore.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-05-28 19:23:47 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-05-28 19:23:47 +0000
commitb5d7902c20ba6b1fcd6a1d0da0f6afdc7bed9fcd (patch)
treedf72f5fc52bab6e6cdac860fb6b5f0cbe277a905 /Src/Zle/compcore.c
parent327481b391e0f5fffde3beb2446f1259f4ccb309 (diff)
downloadzsh-b5d7902c20ba6b1fcd6a1d0da0f6afdc7bed9fcd.tar.gz
zsh-b5d7902c20ba6b1fcd6a1d0da0f6afdc7bed9fcd.tar.xz
zsh-b5d7902c20ba6b1fcd6a1d0da0f6afdc7bed9fcd.zip
Silenced three signed/unsigned comparison compiler warnings.
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r--Src/Zle/compcore.c6
1 files changed, 3 insertions, 3 deletions
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. */