summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
 			    }