commit 86a64b1bb51e58e811f24c5afc65b9ca9aab8f1b
parent 1fd2354ad49f388dafde3d510fb9632dec3ac281
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 1 Jul 2016 11:47:15 +0200
tweaks: reduce two comparisons to a single one
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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]);