From ca404c02432f1ab90f235eb452168d35e6f14936 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 29 Apr 2014 11:54:46 +1000 Subject: Fix some warnings instead of relying upon #pragma to hide them --- lexers/LexCPP.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lexers/LexCPP.cxx') 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(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(0xff)); + StyleContext sc(startPos, length, initStyle, styler, static_cast(0xff)); LinePPState preproc = vlls.ForLine(lineCurrent); bool definitionsChanged = false; -- cgit v1.2.3