aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-04-29 11:54:46 +1000
committerNeil <nyamatongwe@gmail.com>2014-04-29 11:54:46 +1000
commitca404c02432f1ab90f235eb452168d35e6f14936 (patch)
treee71de804085c2607800bfd88031ed474f06652d9 /lexers/LexHTML.cxx
parentb358909987be5f7c92e990939e7a2a5f0dafdb3a (diff)
downloadscintilla-mirror-ca404c02432f1ab90f235eb452168d35e6f14936.tar.gz
Fix some warnings instead of relying upon #pragma to hide them
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r--lexers/LexHTML.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
index 501e5486a..f5da934d2 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -577,7 +577,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
WordList &keywords6 = *keywordlists[5]; // SGML (DTD) keywords
// Lexer for HTML requires more lexical states (8 bits worth) than most lexers
- styler.StartAt(startPos, static_cast<char>(STYLE_MAX));
+ styler.StartAt(startPos, static_cast<unsigned char>(STYLE_MAX));
char prevWord[200];
prevWord[0] = '\0';
char phpStringDelimiter[200]; // PHP is not limited in length, we are
@@ -609,7 +609,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
if (startPos == 0)
state = SCE_H_DEFAULT;
}
- styler.StartAt(startPos, static_cast<char>(STYLE_MAX));
+ styler.StartAt(startPos, static_cast<unsigned char>(STYLE_MAX));
int lineCurrent = styler.GetLine(startPos);
int lineState;