diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2004-05-28 19:23:47 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2004-05-28 19:23:47 +0000 |
commit | b5d7902c20ba6b1fcd6a1d0da0f6afdc7bed9fcd (patch) | |
tree | df72f5fc52bab6e6cdac860fb6b5f0cbe277a905 /Src/Zle | |
parent | 327481b391e0f5fffde3beb2446f1259f4ccb309 (diff) | |
download | zsh-b5d7902c20ba6b1fcd6a1d0da0f6afdc7bed9fcd.tar.gz zsh-b5d7902c20ba6b1fcd6a1d0da0f6afdc7bed9fcd.tar.xz zsh-b5d7902c20ba6b1fcd6a1d0da0f6afdc7bed9fcd.zip |
Silenced three signed/unsigned comparison compiler warnings.
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/compcore.c | 6 | ||||
-rw-r--r-- | Src/Zle/computil.c | 6 |
2 files changed, 6 insertions, 6 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. */ diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 178101b61..be9ad6bca 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -690,8 +690,8 @@ cd_get(char **params) strcpy(dbuf, cd_state.sep); memcpy(dbuf + cd_state.slen, str->desc, - (strlen(str->desc) >= dlen ? dlen - 1 : - strlen(str->desc))); + ((int)strlen(str->desc) >= dlen ? dlen - 1 : + (int)strlen(str->desc))); *dp++ = ztrdup(dbuf); } mats[0] = *dp = NULL; @@ -1640,7 +1640,7 @@ ca_inactive(Cadef d, char **xor, int cur, int opts, char *optname) if ((xor || opts) && cur <= compcurrent) { Caopt opt; char *x; - int sl = (d->set ? strlen(d->set) : -1), set = 0; + int sl = (d->set ? (int)strlen(d->set) : -1), set = 0; for (; (x = (opts ? "-" : *xor)); xor++) { if (optname && optname[0] == x[0] && strcmp(optname, x)) |