aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MarginView.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-06-22 14:52:11 +1000
committerNeil <nyamatongwe@gmail.com>2017-06-22 14:52:11 +1000
commit90af4f5e13db0f262a5637c6017f16475605c677 (patch)
tree2e0f669100056a53d2ffef2f1f9283b66dda5928 /src/MarginView.cxx
parent24025d74703606e825f9fc8511117797c14f3e3e (diff)
downloadscintilla-mirror-90af4f5e13db0f262a5637c6017f16475605c677.tar.gz
Backport: Cast between Sci_Position.h types used for lexers and Position.h types used in
core to allow the Sci_Position.h types to widen to 64-bits. Backport of changeset 6324:95346e626cf8.
Diffstat (limited to 'src/MarginView.cxx')
-rw-r--r--src/MarginView.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/MarginView.cxx b/src/MarginView.cxx
index 7ecc85c7b..cab0ed02c 100644
--- a/src/MarginView.cxx
+++ b/src/MarginView.cxx
@@ -248,7 +248,8 @@ void MarginView::PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc,
}
if (highlightDelimiter.isEnabled) {
Sci::Line lastLine = model.cs.DocFromDisplay(topLine + model.LinesOnScreen()) + 1;
- model.pdoc->GetHighlightDelimiters(highlightDelimiter, model.pdoc->LineFromPosition(model.sel.MainCaret()), lastLine);
+ model.pdoc->GetHighlightDelimiters(highlightDelimiter,
+ static_cast<Sci::Line>(model.pdoc->LineFromPosition(model.sel.MainCaret())), lastLine);
}
}