UI: Fix some sign/size comparison warnings.

Mostly size_t vs int.
This commit is contained in:
Unknown W. Brackets 2022-01-06 20:40:29 -08:00
parent b2bb0be05d
commit a397bf811b
6 changed files with 8 additions and 8 deletions

View file

@ -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 ' ':