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