aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--doc/ScintillaHistory.html4
-rw-r--r--src/ViewStyle.cxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 9a684f608..30d4e1140 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -593,6 +593,10 @@
<a href="http://sourceforge.net/p/scintilla/bugs/1919/">Bug #1919</a>.
</li>
<li>
+ Minor undefined behaviour fixed.
+ <a href="http://sourceforge.net/p/scintilla/bugs/1978">Bug #1978</a>.
+ </li>
+ <li>
On Cocoa, improve scrolling on macOS 10.12.
<a href="http://sourceforge.net/p/scintilla/bugs/1885">Bug #1885</a>.
</li>
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;