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:
parent
7d6b44687f
commit
264f93aad9
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user