aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/LexCaml.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexCaml.cxx b/src/LexCaml.cxx
index e424bec9b..a418ab19c 100644
--- a/src/LexCaml.cxx
+++ b/src/LexCaml.cxx
@@ -232,7 +232,7 @@ void ColouriseCamlDoc(
// length is believable as keyword, [re-]construct token
char t[24];
for (int i = -n; i < 0; i++)
- t[n + i] = sc.GetRelative(i);
+ t[n + i] = static_cast<char>(sc.GetRelative(i));
t[n] = '\0';
// special-case "_" token as KEYWORD
if ((n == 1 && sc.chPrev == '_') || keywords.InList(t))