diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-04-07 19:44:59 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-04-07 19:44:59 +1000 | 
| commit | 1595b1fbedf5587bc7c60cc7a1156ac1bca69f59 (patch) | |
| tree | 351e4826ae9f0f2996ac82d8c0c89c428bcb30b2 /lexers/LexPython.cxx | |
| parent | d97e0e4187f3130e2f06bc032040bc25485a2ece (diff) | |
| download | scintilla-mirror-1595b1fbedf5587bc7c60cc7a1156ac1bca69f59.tar.gz | |
Prefer C++ static cast over C-style casts.
Diffstat (limited to 'lexers/LexPython.cxx')
| -rw-r--r-- | lexers/LexPython.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lexers/LexPython.cxx b/lexers/LexPython.cxx index f80721e2a..328ed7363 100644 --- a/lexers/LexPython.cxx +++ b/lexers/LexPython.cxx @@ -435,7 +435,7 @@ void LexerPython::ProcessLineEnd(StyleContext &sc, std::vector<SingleFStringExpS  	if (deepestSingleStateIndex != -1) {  		sc.SetState(fstringStateStack[deepestSingleStateIndex].state); -		while (fstringStateStack.size() > (unsigned long)deepestSingleStateIndex) { +		while (fstringStateStack.size() > static_cast<unsigned long>(deepestSingleStateIndex)) {  			PopFromStateStack(fstringStateStack, currentFStringExp);  		}  	} @@ -714,7 +714,7 @@ void SCI_METHOD LexerPython::Lex(Sci_PositionU startPos, Sci_Position length, in  				sc.ForwardSetState(SCE_P_DEFAULT);  				needEOLCheck = true; -				while (fstringStateStack.size() > (unsigned long)matching_stack_i) { +				while (fstringStateStack.size() > static_cast<unsigned long>(matching_stack_i)) {  					PopFromStateStack(fstringStateStack, currentFStringExp);  				}  			} | 
