aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2021-10-21 22:26:59 +1100
committerZufu Liu <unknown>2021-10-21 22:26:59 +1100
commita344b8f5f124000f7f3820fbb1d87b8e0adf5092 (patch)
tree7134c945f64060a83cc70d8819ddafb38d2a2f81 /src/PositionCache.cxx
parent352fc86fe34bf8c5d0570e0e1dd3b568fcfcefe1 (diff)
downloadscintilla-mirror-a344b8f5f124000f7f3820fbb1d87b8e0adf5092.tar.gz
Feature [feature-requests:#1417] Use unsigned as that defines wrap-around
behaviour.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r--src/PositionCache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx
index bf46a552b..e9c07936b 100644
--- a/src/PositionCache.cxx
+++ b/src/PositionCache.cxx
@@ -634,7 +634,7 @@ const Representation *SpecialRepresentations::RepresentationFromCharacter(std::s
void SpecialRepresentations::Clear() {
mapReprs.clear();
- constexpr short none = 0;
+ constexpr unsigned short none = 0;
std::fill(startByteHasReprs, std::end(startByteHasReprs), none);
crlf = false;
}