diff options
-rw-r--r-- | doc/ScintillaHistory.html | 4 | ||||
-rw-r--r-- | src/ViewStyle.cxx | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index f205a81e5..425de7247 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -557,6 +557,10 @@ <a href="http://sourceforge.net/p/scintilla/bugs/1968/">Bug #1968</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; |