aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-05-03 18:01:22 +1000
committerNeil <nyamatongwe@gmail.com>2014-05-03 18:01:22 +1000
commitc3e5215e06bd8ff394a9911b5573969cc55681a0 (patch)
tree097a99fce5619ad78dd5f66f6de0539e24063e83 /src/PositionCache.cxx
parente7f79269406933b3edef09c5e6ece9f0d8a99bad (diff)
downloadscintilla-mirror-c3e5215e06bd8ff394a9911b5573969cc55681a0.tar.gz
Turn on MSVC 'possible loss of data' warnings and add explicit casts.
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 e782c77c7..2a120c1cf 100644
--- a/src/PositionCache.cxx
+++ b/src/PositionCache.cxx
@@ -646,7 +646,7 @@ void PositionCache::MeasureWidths(Surface *surface, ViewStyle &vstyle, unsigned
const char *s, unsigned int len, XYPOSITION *positions, Document *pdoc) {
allClear = false;
- unsigned int probe = pces.size(); // Out of bounds
+ size_t probe = pces.size(); // Out of bounds
if ((!pces.empty()) && (len < 30)) {
// Only store short strings in the cache so it doesn't churn with
// long comments with only a single comment.