diff options
author | Neil <nyamatongwe@gmail.com> | 2025-04-03 14:52:19 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-04-03 14:52:19 +1100 |
commit | b4300bf40c1134231af48cab4f38c5394976d9a1 (patch) | |
tree | 9ee9c88ab3b5f19a1933ecc5dfd02d5d2c5e9d0b /src/PositionCache.cxx | |
parent | edb7369a2c6a19393dc413a9595a234969fc2731 (diff) | |
download | scintilla-mirror-b4300bf40c1134231af48cab4f38c5394976d9a1.tar.gz |
Turn on type conversion warnings for GCC and fix them.
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; } |