aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-03-08 17:46:48 +1100
committerNeil <nyamatongwe@gmail.com>2017-03-08 17:46:48 +1100
commit3d54271b42bfc8418d1b399794b47b1e73406dc0 (patch)
treedcd9f89efebbacdb7b3e037c4ee74c4a39a03715 /src/PositionCache.cxx
parent0511aefd73563276c3c4f333acbbf8d972733901 (diff)
downloadscintilla-mirror-3d54271b42bfc8418d1b399794b47b1e73406dc0.tar.gz
Fix warnings from Visual Studio 2017.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r--src/PositionCache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx
index a46c13004..82cda7b78 100644
--- a/src/PositionCache.cxx
+++ b/src/PositionCache.cxx
@@ -392,7 +392,7 @@ static inline int KeyFromString(const char *charBytes, size_t len) {
}
SpecialRepresentations::SpecialRepresentations() {
- std::fill(startByteHasReprs, startByteHasReprs+0x100, 0);
+ std::fill(startByteHasReprs, startByteHasReprs+0x100, static_cast<short>(0));
}
void SpecialRepresentations::SetRepresentation(const char *charBytes, const char *value) {
@@ -433,7 +433,7 @@ bool SpecialRepresentations::Contains(const char *charBytes, size_t len) const {
void SpecialRepresentations::Clear() {
mapReprs.clear();
- std::fill(startByteHasReprs, startByteHasReprs+0x100, 0);
+ std::fill(startByteHasReprs, startByteHasReprs+0x100, static_cast<short>(0));
}
void BreakFinder::Insert(int val) {