aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2017-03-28 16:53:55 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2017-03-28 16:53:55 +1100
commit343ef6dfe59777bae027d92fce6eb9d257387852 (patch)
treebe0598714b88cc34fa7a334fd523162ee7e4d17d
parent7ce3a72ba5942686fce2bccc59a051044511f238 (diff)
downloadscintilla-mirror-343ef6dfe59777bae027d92fce6eb9d257387852.tar.gz
Fix Xcode warning.
-rw-r--r--lexers/LexErrorList.cxx2
1 files changed, 1 insertions, 1 deletions
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<Sci_Position>(endSeq - linePortion) + 1;
switch (*endSeq) {
case 0:
styler.ColourTo(endPos, SCE_ERR_ESCSEQ_UNKNOWN);