summaryrefslogtreecommitdiff
path: root/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'syntax.c')
-rw-r--r--syntax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax.c b/syntax.c
index 56dc15f..9903cf4 100644
--- a/syntax.c
+++ b/syntax.c
@@ -903,7 +903,7 @@ static void syntax_highlight_html(SyntaxState *state, char32_t const *line, u32
} else if (in_sgl_string || in_dbl_string) {
if (char_types)
char_types[i] = SYNTAX_STRING;
- if (line[i] == (in_sgl_string ? '\'' : '"') && backslashes % 2 == 0)
+ if (line[i] == (char32_t)(in_sgl_string ? '\'' : '"') && backslashes % 2 == 0)
in_sgl_string = in_dbl_string = false;
} else {
if (char_types) char_types[i] = SYNTAX_NORMAL;