diff options
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/deltochar.c | 6 | ||||
-rw-r--r-- | Src/Zle/zle_utils.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Src/Zle/deltochar.c b/Src/Zle/deltochar.c index d25f99680..66b4aeccd 100644 --- a/Src/Zle/deltochar.c +++ b/Src/Zle/deltochar.c @@ -43,7 +43,7 @@ deltochar(UNUSED(char **args)) if (n > 0) { while (n-- && dest != zlell) { - while (dest != zlell && zleline[dest] != c) + while (dest != zlell && (ZLE_INT_T)zleline[dest] != c) dest++; if (dest != zlell) { if (!zap || n > 0) @@ -59,9 +59,9 @@ deltochar(UNUSED(char **args)) if (dest) dest--; while (n++ && dest != 0) { - while (dest != 0 && zleline[dest] != c) + while (dest != 0 && (ZLE_INT_T)zleline[dest] != c) dest--; - if (zleline[dest] == c) { + if ((ZLE_INT_T)zleline[dest] == c) { if (!n) { backkill(zlecs - dest - zap, 1); ok++; diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index 063427659..b5f9884a9 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -306,7 +306,7 @@ stringaszleline(unsigned char *instr, int incs, if (outcs) { int offs = inptr - (char *)instr; - if (offs <= incs && incs < offs + ret) + if (offs <= incs && incs < offs + (int)ret) *outcs = outptr - outstr; } @@ -617,7 +617,7 @@ zlinecmp(ZLE_STRING_T histp, int histl, ZLE_STRING_T inputp, int inputl) } for (cnt = inputl; cnt; cnt--) { - if (*inputp++ != ZC_tolower(*histp++)) + if ((ZLE_INT_T)*inputp++ != ZC_tolower(*histp++)) return 3; } /* Is second string is lowercase version of first? */ |