From b4300bf40c1134231af48cab4f38c5394976d9a1 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 3 Apr 2025 14:52:19 +1100 Subject: Turn on type conversion warnings for GCC and fix them. --- 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 348b5dd05..09b01959e 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -278,7 +278,7 @@ void MarginView::PaintOneMargin(Surface *surface, PRectangle rc, PRectangle rcOn const Point ptOrigin = model.GetVisibleOriginInMain(); const Sci::Line lineStartPaint = static_cast(rcOneMargin.top + ptOrigin.y) / vs.lineHeight; Sci::Line visibleLine = model.TopLineOfMain() + lineStartPaint; - XYPOSITION yposScreen = lineStartPaint * vs.lineHeight - ptOrigin.y; + XYPOSITION yposScreen = static_cast(lineStartPaint * vs.lineHeight) - ptOrigin.y; // Work out whether the top line is whitespace located after a // lessening of fold level which implies a 'fold tail' but which should not // be displayed until the last of a sequence of whitespace. -- cgit v1.2.3