Fix cast mistake in array lookup

This commit is contained in:
Takashi Kokubun 2016-08-14 22:56:18 +09:00
parent 50bb33d39b
commit fb3c8624b5
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ hesc_escape_html(char **dest, const char *buf, size_t size)
while (i < size) {
// Loop here to skip non-escaped characters fast.
while (i < size && (esc_i = HTML_ESCAPE_TABLE[(int)buf[i]]) == 0)
while (i < size && (esc_i = HTML_ESCAPE_TABLE[(unsigned char)buf[i]]) == 0)
i++;
if (i < size && esc_i) {