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:19:30 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-10-31 21:19:30 +0000
commit285ac8428fcfdabd1ccbf1d9c0a8d4aa62e4a593 (patch)
treea759b3582098c0287bf1489681f587d15d86bd28 /Src/Zle
parente02e6d0a264bb629a53d1b9452525e833fe013c4 (diff)
downloadzsh-285ac8428fcfdabd1ccbf1d9c0a8d4aa62e4a593.tar.gz
zsh-285ac8428fcfdabd1ccbf1d9c0a8d4aa62e4a593.tar.xz
zsh-285ac8428fcfdabd1ccbf1d9c0a8d4aa62e4a593.zip
Fixed a compiler warning about a signed/unsigned comparison.
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/zle_move.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Src/Zle/zle_move.c b/Src/Zle/zle_move.c
index a60b4dfd0..1238c1834 100644
--- a/Src/Zle/zle_move.c
+++ b/Src/Zle/zle_move.c
@@ -420,10 +420,12 @@ virepeatfind(char **args)
 	return ret;
     }
     while (n--) {
-	do
+	do {
 	    zlecs += vfinddir;
-	while (zlecs >= 0 && zlecs < zlell && zleline[zlecs] != vfindchar && zleline[zlecs] != '\n');
-	if (zlecs < 0 || zlecs >= zlell || zleline[zlecs] == '\n') {
+	} while (zlecs >= 0 && zlecs < zlell
+	    && (ZLE_INT_T)zleline[zlecs] != vfindchar
+	    && zleline[zlecs] != ZWC('\n'));
+	if (zlecs < 0 || zlecs >= zlell || zleline[zlecs] == ZWC('\n')) {
 	    zlecs = ocs;
 	    return 1;
 	}