diff options
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r-- | src/LexHTML.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index cb0d277cd..5622f476f 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -303,7 +303,7 @@ static void classifyWordHTPHP(unsigned int start, unsigned int end, WordList &ke char s[30 + 1]; unsigned int i = 0; for (; i < end - start + 1 && i < 30; i++) { - s[i] = styler[start + i]; + s[i] = static_cast<char>(tolower(styler[start + i])); } s[i] = '\0'; if (keywords.InList(s)) |