remove useless checks (we use char, not unsigned char)
fixes compilation warnings
This commit is contained in:
parent
37e73e77b0
commit
eee4ace092
@ -111,12 +111,11 @@ void maybe_escape_markup(char *text, char **buffer) {
|
|||||||
default:
|
default:
|
||||||
if ((0x1 <= *text && *text <= 0x8) ||
|
if ((0x1 <= *text && *text <= 0x8) ||
|
||||||
(0xb <= *text && *text <= 0xc) ||
|
(0xb <= *text && *text <= 0xc) ||
|
||||||
(0xe <= *text && *text <= 0x1f) ||
|
(0xe <= *text && *text <= 0x1f)) {
|
||||||
(0x7f <= *text && *text <= 0x84) ||
|
|
||||||
(0x86 <= *text && *text <= 0x9f))
|
|
||||||
*buffer += sprintf(*buffer, "&#x%x;", *text);
|
*buffer += sprintf(*buffer, "&#x%x;", *text);
|
||||||
else
|
} else {
|
||||||
*(*buffer)++ = *text;
|
*(*buffer)++ = *text;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user