about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2008-01-21 19:15:39 +0000
committerWayne Davison <wayned@users.sourceforge.net>2008-01-21 19:15:39 +0000
commit172a81db90b9b5a499fb10f1b6334dee32b24d88 (patch)
treed620c094e2a302a1165c87cb780971951e274a9c
parent709426fcfd99d4ebb042df585876d81cf0ddc81e (diff)
downloadzsh-172a81db90b9b5a499fb10f1b6334dee32b24d88.tar.gz
zsh-172a81db90b9b5a499fb10f1b6334dee32b24d88.tar.xz
zsh-172a81db90b9b5a499fb10f1b6334dee32b24d88.zip
Silence a compiler warning.
-rw-r--r--ChangeLog5
-rw-r--r--Src/builtin.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e09b016bd..838b2e505 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-21  Wayne Davison  <wayned@users.sourceforge.net>
+
+	* unposted: Src/builtin.c: got rid of compiler warning about
+	a signed/unsigned comparison.
+
 2008-01-19  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* unposted: Completion/Unix/Command/_mount: make MATCH etc.
diff --git a/Src/builtin.c b/Src/builtin.c
index 299ad3758..048d6c625 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -4970,7 +4970,7 @@ bin_read(char *name, char **args, Options ops, UNUSED(int func))
 			    }
 			    else if (ret == 0) /* handle null as normal char */
 				ret = 1;
-			    else if (ret > val) {
+			    else if (ret > (size_t)val) {
 				/* Some mbrlen()s return the full char len */
 				ret = val;
 			    }