From a29a92c614ae03f4058f0e63899350d83c43d670 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 19 Apr 2018 17:09:27 +1000 Subject: 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. --- src/MarginView.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/MarginView.cxx') 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(model.pdoc->LineFromPosition(model.sel.MainCaret())), lastLine); + model.pdoc->SciLineFromPosition(model.sel.MainCaret()), lastLine); } } -- cgit v1.2.3