about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-11-08 10:51:03 +0000
committerPeter Stephenson <pws@zsh.org>2016-11-08 10:51:03 +0000
commit1683371fa5be3bd038ee5c73fe53dcab8809204e (patch)
tree4c913abb9cd7296c6849bf3163d860a539a686e2
parent68a576bc552af1a5484fda9d5e28eff7ca5a2364 (diff)
downloadzsh-1683371fa5be3bd038ee5c73fe53dcab8809204e.tar.gz
zsh-1683371fa5be3bd038ee5c73fe53dcab8809204e.tar.xz
zsh-1683371fa5be3bd038ee5c73fe53dcab8809204e.zip
unposted: follow up to 39867: don't need test against zero
-rw-r--r--ChangeLog3
-rw-r--r--Src/utils.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4409e6ea2..fc51df7d9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2016-11-08  Peter Stephenson  <p.stephenson@samsung.com>
 
+	* unposted: Src/utils.c: follow up to 39867: don't need test
+	against zero any more.
+
 	* Sebastian: 39869: can transfer ownership of core of array when
 	assigning.
 
diff --git a/Src/utils.c b/Src/utils.c
index d73110a3e..93e757ce8 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -5341,7 +5341,7 @@ mb_metastrlenend(char *ptr, int width, char *eptr)
 	    inchar = *ptr;
 	ptr++;
 
-	if (complete && (inchar >= 0 && STOUC(inchar) <= STOUC(0x7f))) {
+	if (complete && STOUC(inchar) <= STOUC(0x7f)) {
 	    /*
 	     * We rely on 7-bit US-ASCII as a subset, so skip
 	     * multibyte handling if we have such a character.