Fix harmless signed/unsigned comparison warning in wxSTC code

Cast int to size_t before comparing it with the wxString length.
This commit is contained in:
Vadim Zeitlin 2018-01-27 13:37:53 +01:00
parent 7d6b44687f
commit 264f93aad9

View File

@ -1652,9 +1652,10 @@ void SurfaceD2D::MeasureWidths(Font &font_, const char *s, int len,
}
else
{
const size_t buflen = static_cast<size_t>(len);
// One character per position
PLATFORM_ASSERT(len == tbuf.Length());
for ( size_t kk=0; kk<static_cast<size_t>(len); kk++ )
PLATFORM_ASSERT(buflen == tbuf.Length());
for ( size_t kk=0; kk<buflen; kk++ )
{
positions[kk] = poses[kk];
}