From 264f93aad99664d5b022189e7b0a7aa2c68f16e1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Jan 2018 13:37:53 +0100 Subject: [PATCH] Fix harmless signed/unsigned comparison warning in wxSTC code Cast int to size_t before comparing it with the wxString length. --- src/stc/PlatWX.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index 05002340fc..22339fb672 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -1652,9 +1652,10 @@ void SurfaceD2D::MeasureWidths(Font &font_, const char *s, int len, } else { + const size_t buflen = static_cast(len); // One character per position - PLATFORM_ASSERT(len == tbuf.Length()); - for ( size_t kk=0; kk(len); kk++ ) + PLATFORM_ASSERT(buflen == tbuf.Length()); + for ( size_t kk=0; kk