summaryrefslogtreecommitdiff
path: root/syntax.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-04-20 15:03:43 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-04-20 15:03:43 -0400
commitadc0e91ddbe70c2127d39c337d9b4a09ea752425 (patch)
tree36d573976865ff5793812edb6ea3261799bfb742 /syntax.c
parenta57a9682e74ff3609acb2ca6697fc6fa94c23fb6 (diff)
silence GCC warnings
Diffstat (limited to 'syntax.c')
-rw-r--r--syntax.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/syntax.c b/syntax.c
index 19aca34..56dc15f 100644
--- a/syntax.c
+++ b/syntax.c
@@ -573,8 +573,10 @@ static void syntax_highlight_python(SyntaxState *state, char32_t const *line, u3
}
*state = 0;
if (in_string && string_is_multiline) {
- *state |= SYNTAX_STATE_PYTHON_STRING
- | (SYNTAX_STATE_PYTHON_STRING_DBL_QUOTED * string_is_dbl_quoted);
+ *state |= (SyntaxState)(
+ SYNTAX_STATE_PYTHON_STRING
+ | (SYNTAX_STATE_PYTHON_STRING_DBL_QUOTED * string_is_dbl_quoted)
+ );
}
}