diff options
author | Neil <nyamatongwe@gmail.com> | 2014-04-29 11:54:46 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-04-29 11:54:46 +1000 |
commit | ca404c02432f1ab90f235eb452168d35e6f14936 (patch) | |
tree | e71de804085c2607800bfd88031ed474f06652d9 /lexers/LexCPP.cxx | |
parent | b358909987be5f7c92e990939e7a2a5f0dafdb3a (diff) | |
download | scintilla-mirror-ca404c02432f1ab90f235eb452168d35e6f14936.tar.gz |
Fix some warnings instead of relying upon #pragma to hide them
Diffstat (limited to 'lexers/LexCPP.cxx')
-rw-r--r-- | lexers/LexCPP.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index e140cd639..fbc2a4578 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -101,7 +101,7 @@ void highlightTaskMarker(StyleContext &sc, LexAccessor &styler, if (caseSensitive) marker[i] = ch; else - marker[i] = tolower(ch); + marker[i] = static_cast<char>(tolower(ch)); i++; } marker[i] = '\0'; @@ -621,7 +621,7 @@ void SCI_METHOD LexerCPP::Lex(unsigned int startPos, int length, int initStyle, } } - StyleContext sc(startPos, length, initStyle, styler, static_cast<char>(0xff)); + StyleContext sc(startPos, length, initStyle, styler, static_cast<unsigned char>(0xff)); LinePPState preproc = vlls.ForLine(lineCurrent); bool definitionsChanged = false; |