aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexErrorList.cxx
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2016-09-14 15:06:13 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2016-09-14 15:06:13 +1000
commit427f3dabfedb6f9b66c15d93a013b9beaf089e37 (patch)
treeeda7a1c73570b20202a46081707d1fe9949a475a /lexers/LexErrorList.cxx
parent5ca7dd65bb30f05ad8aa6bfd269d812e766930da (diff)
downloadscintilla-mirror-427f3dabfedb6f9b66c15d93a013b9beaf089e37.tar.gz
Casts for 64 to 32-bit conversions on OS X.
Diffstat (limited to 'lexers/LexErrorList.cxx')
-rw-r--r--lexers/LexErrorList.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexErrorList.cxx b/lexers/LexErrorList.cxx
index 142b7b5a5..6dc6b025e 100644
--- a/lexers/LexErrorList.cxx
+++ b/lexers/LexErrorList.cxx
@@ -320,12 +320,12 @@ static void ColouriseErrorListLine(
int portionStyle = style;
while (const char *startSeq = strstr(linePortion, CSI)) {
if (startSeq > linePortion) {
- styler.ColourTo(startPortion + (startSeq - linePortion), portionStyle);
+ styler.ColourTo(startPortion + static_cast<int>(startSeq - linePortion), portionStyle);
}
const char *endSeq = startSeq + 2;
while (!SequenceEnd(*endSeq))
endSeq++;
- const int endSeqPosition = startPortion + (endSeq - linePortion) + 1;
+ const int endSeqPosition = startPortion + static_cast<int>(endSeq - linePortion) + 1;
switch (*endSeq) {
case 0:
styler.ColourTo(endPos, SCE_ERR_ESCSEQ_UNKNOWN);