From a7e454314d0db290dd98da6c3a32fef6dff95c98 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 2 Jul 2019 07:59:04 +1000 Subject: Bug [#2115]. Backed out changeset: 74b2c724a1df as not undefined behaviour. --- src/MarginView.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/MarginView.cxx b/src/MarginView.cxx index aaa83373f..13d55730f 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -268,7 +268,7 @@ void MarginView::PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc, const bool firstSubLine = visibleLine == firstVisibleLine; const bool lastSubLine = visibleLine == lastVisibleLine; - unsigned int marks = model.pdoc->GetMark(lineDoc); + int marks = model.pdoc->GetMark(lineDoc); if (!firstSubLine) marks = 0; @@ -285,7 +285,7 @@ void MarginView::PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc, if (levelNum < levelNextNum) { if (model.pcs->GetExpanded(lineDoc)) { if (levelNum == SC_FOLDLEVELBASE) - marks |= 1U << SC_MARKNUM_FOLDEROPEN; + marks |= 1 << SC_MARKNUM_FOLDEROPEN; else marks |= 1 << folderOpenMid; } else { -- cgit v1.2.3