From 1595b1fbedf5587bc7c60cc7a1156ac1bca69f59 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 7 Apr 2017 19:44:59 +1000 Subject: Prefer C++ static cast over C-style casts. --- lexers/LexPython.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lexers/LexPython.cxx') 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 (unsigned long)deepestSingleStateIndex) { + while (fstringStateStack.size() > static_cast(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(matching_stack_i)) { PopFromStateStack(fstringStateStack, currentFStringExp); } } -- cgit v1.2.3