about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-11-15 09:34:00 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-11-15 09:34:00 +0000
commit2288d7760b674e54693e32e0d7e0f1040f177f83 (patch)
treeb80a634c84d0b8cbc867b2ecdb585f7e1c9e6ed0 /Src/Zle
parent6a88f113a2f13c6de113a34d126fba4434af7908 (diff)
downloadzsh-2288d7760b674e54693e32e0d7e0f1040f177f83.tar.gz
zsh-2288d7760b674e54693e32e0d7e0f1040f177f83.tar.xz
zsh-2288d7760b674e54693e32e0d7e0f1040f177f83.zip
Got rid of some compiler warnings about comparisons between signed
and unsigned variables.
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_misc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c
index cd91744f8..b3706f2d0 100644
--- a/Src/Zle/zle_misc.c
+++ b/Src/Zle/zle_misc.c
@@ -1197,8 +1197,9 @@ iremovesuffix(ZLE_INT_T c, int keep)
 	if (c == NO_INSERT_CHAR) {
 	    sl = suffixnoinslen;
 	} else {
+	    ZLE_CHAR_T ch = c;
 	    /*
-	     * Search for a match for c in the suffix list.
+	     * Search for a match for ch in the suffix list.
 	     * We stop if we encounter a match in a positive or negative
 	     * list, using the suffix length specified or zero respectively.
 	     * If we reached the end and passed through a negative
@@ -1212,14 +1213,14 @@ iremovesuffix(ZLE_INT_T c, int keep)
 	    for (ss = suffixlist; ss; ss = ss->next) {
 		switch (ss->tp) {
 		case SUFTYP_POSSTR:
-		    if (memchr(ss->chars, c, ss->lenstr)) {
+		    if (memchr(ss->chars, ch, ss->lenstr)) {
 			sl = ss->lensuf;
 			found = 1;
 		    }
 		    break;
 
 		case SUFTYP_NEGSTR:
-		    if (memchr(ss->chars, c, ss->lenstr)) {
+		    if (memchr(ss->chars, ch, ss->lenstr)) {
 			sl = 0;
 			found = 1;
 		    } else {
@@ -1228,14 +1229,14 @@ iremovesuffix(ZLE_INT_T c, int keep)
 		    break;
 
 		case SUFTYP_POSRNG:
-		    if (ss->chars[0] <= c && c <= ss->chars[1]) {
+		    if (ss->chars[0] <= ch && ch <= ss->chars[1]) {
 			sl = ss->lensuf;
 			found = 1;
 		    }
 		    break;
 
 		case SUFTYP_NEGRNG:
-		    if (ss->chars[0] <= c && c <= ss->chars[1]) {
+		    if (ss->chars[0] <= ch && ch <= ss->chars[1]) {
 			sl = 0;
 			found = 1;
 		    } else {