summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2017-03-08 19:24:09 +0100
committerMichael Stapelberg <michael@stapelberg.de>2017-03-08 19:24:09 +0100
commiteee4ace092c21a82230c21afcff4d17a3f497b52 (patch)
tree02355f84ae40434d22e96d59a2c259ee3364bea9
parent37e73e77b0514993cd386a5d12509c88dddba5ed (diff)
remove useless checks (we use char, not unsigned char)
fixes compilation warnings
-rw-r--r--src/output.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/output.c b/src/output.c
index 1c8c415..663700e 100644
--- a/src/output.c
+++ b/src/output.c
@@ -111,12 +111,11 @@ void maybe_escape_markup(char *text, char **buffer) {
default:
if ((0x1 <= *text && *text <= 0x8) ||
(0xb <= *text && *text <= 0xc) ||
- (0xe <= *text && *text <= 0x1f) ||
- (0x7f <= *text && *text <= 0x84) ||
- (0x86 <= *text && *text <= 0x9f))
+ (0xe <= *text && *text <= 0x1f)) {
*buffer += sprintf(*buffer, "&#x%x;", *text);
- else
+ } else {
*(*buffer)++ = *text;
+ }
break;
}
}