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:
parent
327481b391
commit
b5d7902c20
2 changed files with 6 additions and 6 deletions
|
|
@ -1477,7 +1477,7 @@ set_comp_sep(void)
|
||||||
sl = strlen(s);
|
sl = strlen(s);
|
||||||
if (swe > sl) {
|
if (swe > sl) {
|
||||||
swe = sl;
|
swe = sl;
|
||||||
if (strlen(ns) > swe - swb + 1)
|
if ((int)strlen(ns) > swe - swb + 1)
|
||||||
ns[swe - swb + 1] = '\0';
|
ns[swe - swb + 1] = '\0';
|
||||||
}
|
}
|
||||||
qs = (issq ? dupstring(s + swe) : rembslash(s + swe));
|
qs = (issq ? dupstring(s + swe) : rembslash(s + swe));
|
||||||
|
|
@ -1862,8 +1862,8 @@ addmatches(Cadata dat, char **argv)
|
||||||
llpl = strlen(lpre);
|
llpl = strlen(lpre);
|
||||||
llsl = strlen(lsuf);
|
llsl = strlen(lsuf);
|
||||||
|
|
||||||
if (llpl + strlen(compqiprefix) + strlen(lipre) != origlpre ||
|
if (llpl + (int)strlen(compqiprefix) + (int)strlen(lipre) != origlpre
|
||||||
llsl + strlen(compqisuffix) + strlen(lisuf) != origlsuf)
|
|| llsl + (int)strlen(compqisuffix) + (int)strlen(lisuf) != origlsuf)
|
||||||
lenchanged = 1;
|
lenchanged = 1;
|
||||||
|
|
||||||
/* Test if there is an existing -P prefix. */
|
/* Test if there is an existing -P prefix. */
|
||||||
|
|
|
||||||
|
|
@ -690,8 +690,8 @@ cd_get(char **params)
|
||||||
strcpy(dbuf, cd_state.sep);
|
strcpy(dbuf, cd_state.sep);
|
||||||
memcpy(dbuf + cd_state.slen,
|
memcpy(dbuf + cd_state.slen,
|
||||||
str->desc,
|
str->desc,
|
||||||
(strlen(str->desc) >= dlen ? dlen - 1 :
|
((int)strlen(str->desc) >= dlen ? dlen - 1 :
|
||||||
strlen(str->desc)));
|
(int)strlen(str->desc)));
|
||||||
*dp++ = ztrdup(dbuf);
|
*dp++ = ztrdup(dbuf);
|
||||||
}
|
}
|
||||||
mats[0] = *dp = NULL;
|
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) {
|
if ((xor || opts) && cur <= compcurrent) {
|
||||||
Caopt opt;
|
Caopt opt;
|
||||||
char *x;
|
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++) {
|
for (; (x = (opts ? "-" : *xor)); xor++) {
|
||||||
if (optname && optname[0] == x[0] && strcmp(optname, x))
|
if (optname && optname[0] == x[0] && strcmp(optname, x))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue