From 048e6c1815d8fbcc9e0ef0adb9482307c31d634a Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 31 Jan 2020 10:55:14 +1100 Subject: Avoid Clang warning with extra test. Harmonize types to avoid casts. --- win32/PlatWin.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index c9f296a90..348cbb255 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1992,14 +1992,14 @@ void SurfaceD2D::MeasureWidths(Font &font_, std::string_view text, XYPOSITION *p } // A cluster may be more than one WCHAR, such as for "ffi" which is a ligature in the Candara font FLOAT position = 0.0f; - size_t ti=0; - for (size_t ci=0; ci(tbuf.tlen)); + PLATFORM_ASSERT(ti == tbuf.tlen); if (unicodeMode) { // Map the widths given for UTF-16 characters back onto the UTF-8 input string int ui=0; @@ -2010,7 +2010,7 @@ void SurfaceD2D::MeasureWidths(Font &font_, std::string_view text, XYPOSITION *p if (byteCount == 4) { // Non-BMP ui++; } - for (unsigned int bytePos=0; (bytePos