UI: Fix some sign/size comparison warnings.
Mostly size_t vs int.
This commit is contained in:
parent
b2bb0be05d
commit
a397bf811b
6 changed files with 8 additions and 8 deletions
|
@ -671,7 +671,7 @@ protected:
|
|||
float MeasureWidth(const char *str, size_t bytes) override {
|
||||
// Simple case for unit testing.
|
||||
int w = 0;
|
||||
for (UTF8 utf(str); !utf.end() && utf.byteIndex() < bytes; ) {
|
||||
for (UTF8 utf(str); !utf.end() && (size_t)utf.byteIndex() < bytes; ) {
|
||||
uint32_t c = utf.next();
|
||||
switch (c) {
|
||||
case ' ':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue