From b4300bf40c1134231af48cab4f38c5394976d9a1 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 3 Apr 2025 14:52:19 +1100 Subject: Turn on type conversion warnings for GCC and fix them. --- 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 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(i+1); } return; } -- cgit v1.2.3