From a344b8f5f124000f7f3820fbb1d87b8e0adf5092 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Thu, 21 Oct 2021 22:26:59 +1100 Subject: Feature [feature-requests:#1417] Use unsigned as that defines wrap-around behaviour. --- src/PositionCache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PositionCache.cxx') 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; } -- cgit v1.2.3