Commit 86a64b1b authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: reduce two comparisons to a single one

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment