From 26ff1bba505f093c4755e4afd6eade6c3d582b7f Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 3 May 2014 18:01:22 +1000 Subject: Turn on MSVC 'possible loss of data' warnings and add explicit casts. --- 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 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. -- cgit v1.2.3