diff options
author | Neil <nyamatongwe@gmail.com> | 2021-08-07 17:08:44 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-08-07 17:08:44 +1000 |
commit | 8b71eb6d6065ec233b5b40adb9c6b10407c73fee (patch) | |
tree | 7ea820d3c27e24477438fa0c53a423868e812d52 /src/Decoration.cxx | |
parent | 334c795c94f69a827ac2da6acd8e9ff227a18767 (diff) | |
download | scintilla-mirror-8b71eb6d6065ec233b5b40adb9c6b10407c73fee.tar.gz |
Changes for Cppcheck 2.5.
Shift of unsigned to avoid too much shifting and overflow warnings.
Remove condition that was always true.
Remove suppressions no longer needed.
Diffstat (limited to 'src/Decoration.cxx')
-rw-r--r-- | src/Decoration.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Decoration.cxx b/src/Decoration.cxx index 77b2894b2..4fd6b3b58 100644 --- a/src/Decoration.cxx +++ b/src/Decoration.cxx @@ -263,7 +263,7 @@ int DecorationList<POS>::AllOnFor(Sci::Position position) const noexcept { for (const std::unique_ptr<Decoration<POS>> &deco : decorationList) { if (deco->rs.ValueAt(static_cast<POS>(position))) { if (deco->Indicator() < static_cast<int>(Scintilla::IndicatorNumbers::Ime)) { - mask |= 1 << deco->Indicator(); + mask |= 1u << deco->Indicator(); } } } |