aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MarginView.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-19 17:09:27 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-19 17:09:27 +1000
commita29a92c614ae03f4058f0e63899350d83c43d670 (patch)
tree5b2c629dde7ea3c7976912d80ddf1626c27a258b /src/MarginView.cxx
parent463b5ec1bd24fd9b23d0f6149a30a4e0d9136eaa (diff)
downloadscintilla-mirror-a29a92c614ae03f4058f0e63899350d83c43d670.tar.gz
Casting changed in many places, due to change to 64-bit variables for 64-bit
builds. Some of the changes ensure no truncation while others remove casts that are no longer needed because the externally visible Sci_Position is now identical to Sci::Position. Some extra methods (CellBuffer::UCharAt and Document::SciLineFromPosition) added to avoid casting in client code. Sci::Line is currently identical to Sci::Position but it could be made smaller so lines have Sci::Line types and are cast. Some arguments widened.
Diffstat (limited to 'src/MarginView.cxx')
-rw-r--r--src/MarginView.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MarginView.cxx b/src/MarginView.cxx
index 02a961b10..09f1b636d 100644
--- a/src/MarginView.cxx
+++ b/src/MarginView.cxx
@@ -245,7 +245,7 @@ void MarginView::PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc,
if (highlightDelimiter.isEnabled) {
const Sci::Line lastLine = model.pcs->DocFromDisplay(topLine + model.LinesOnScreen()) + 1;
model.pdoc->GetHighlightDelimiters(highlightDelimiter,
- static_cast<Sci::Line>(model.pdoc->LineFromPosition(model.sel.MainCaret())), lastLine);
+ model.pdoc->SciLineFromPosition(model.sel.MainCaret()), lastLine);
}
}