From 343ef6dfe59777bae027d92fce6eb9d257387852 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Tue, 28 Mar 2017 16:53:55 +1100 Subject: Fix Xcode warning. --- lexers/LexErrorList.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/LexErrorList.cxx b/lexers/LexErrorList.cxx index 50e12469c..b1b99c503 100644 --- a/lexers/LexErrorList.cxx +++ b/lexers/LexErrorList.cxx @@ -326,7 +326,7 @@ static void ColouriseErrorListLine( const char *endSeq = startSeq + 2; while (!SequenceEnd(*endSeq)) endSeq++; - const Sci_Position endSeqPosition = startPortion + (endSeq - linePortion) + 1; + const Sci_Position endSeqPosition = startPortion + static_cast(endSeq - linePortion) + 1; switch (*endSeq) { case 0: styler.ColourTo(endPos, SCE_ERR_ESCSEQ_UNKNOWN); -- cgit v1.2.3