1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 05:00:59 +01:00

Silenced three signed/unsigned comparison compiler warnings.

This commit is contained in:
Wayne Davison 2004-05-28 19:23:47 +00:00
parent 327481b391
commit b5d7902c20
2 changed files with 6 additions and 6 deletions

View file

@ -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. */