From b3352da038cb3869640f942d94fc158d1af73a9c Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sun, 15 Oct 2017 09:05:57 +1100 Subject: Backport: Bug [#1978]. Minor undefined behaviour fixed. Backport of changeset 6398:2db0528f34b5. --- src/ViewStyle.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 70419569b..c2d5effcd 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -192,7 +192,7 @@ void ViewStyle::CalculateMarginWidthAndMask() { } maskDrawInText = 0; for (int markBit = 0; markBit < 32; markBit++) { - const int maskBit = 1 << markBit; + const int maskBit = 1U << markBit; switch (markers[markBit].markType) { case SC_MARK_EMPTY: maskInLine &= ~maskBit; -- cgit v1.2.3