diff options
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index df5e5acf9..89276d2a0 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -1133,7 +1133,7 @@ void PositionCache::MeasureWidths(Surface *surface, const ViewStyle &vstyle, uns if (AllGraphicASCII(sv)) { const XYPOSITION monospaceCharacterWidth = style.monospaceCharacterWidth; for (size_t i = 0; i < sv.length(); i++) { - positions[i] = monospaceCharacterWidth * (i+1); + positions[i] = monospaceCharacterWidth * static_cast<XYPOSITION>(i+1); } return; } |