From 86a64b1bb51e58e811f24c5afc65b9ca9aab8f1b Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 1 Jul 2016 11:47:15 +0200
Subject: [PATCH] tweaks: reduce two comparisons to a single one

---
 src/chars.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chars.c b/src/chars.c
index a78c9c8f..b92d9a2e 100644
--- a/src/chars.c
+++ b/src/chars.c
@@ -256,7 +256,7 @@ char control_mbrep(const char *c)
 
 #ifdef ENABLE_UTF8
     if (use_utf8) {
-	if (0 <= c[0] && c[0] <= 127)
+	if ((unsigned char)c[0] < 128)
 	    return control_rep(c[0]);
 	else
 	    return control_rep(c[1]);
-- 
GitLab