diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/PositionCache.cxx | 2 | ||||
-rw-r--r-- | src/PositionCache.h | 2 |
2 files changed, 2 insertions, 2 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; } diff --git a/src/PositionCache.h b/src/PositionCache.h index eb9b0d0a4..9a9f2e6fc 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -200,7 +200,7 @@ typedef std::map<unsigned int, Representation> MapRepresentation; class SpecialRepresentations { MapRepresentation mapReprs; - short startByteHasReprs[0x100] {}; + unsigned short startByteHasReprs[0x100] {}; bool crlf = false; public: void SetRepresentation(std::string_view charBytes, std::string_view value); |