about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-10-31 21:12:24 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-10-31 21:12:24 +0000
commite02e6d0a264bb629a53d1b9452525e833fe013c4 (patch)
tree0bd50b505f2effb35b128feeed9e12fbb16ba602 /Src/Zle
parentedbe0eda229f094f53837cc0e9595f6b55660360 (diff)
downloadzsh-e02e6d0a264bb629a53d1b9452525e833fe013c4.tar.gz
zsh-e02e6d0a264bb629a53d1b9452525e833fe013c4.tar.xz
zsh-e02e6d0a264bb629a53d1b9452525e833fe013c4.zip
Fixed some compiler warnings about signed/unsigned comparisons.
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/deltochar.c6
-rw-r--r--Src/Zle/zle_utils.c4
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? */