mirror of https://github.com/OpenTTD/OpenTTD
(svn r20275) -Fix (r20274): some compilers are complaining about signed/unsigned comparison
parent
dc3271b705
commit
09bfbee90e
|
@ -70,7 +70,7 @@ static uint16 ParseCode(const char *start, const char *end)
|
||||||
while (start < end && *start == ' ') start++;
|
while (start < end && *start == ' ') start++;
|
||||||
while (end > start && *end == ' ') end--;
|
while (end > start && *end == ' ') end--;
|
||||||
for (uint i = 0; i < lengthof(_keycode_to_name); i++) {
|
for (uint i = 0; i < lengthof(_keycode_to_name); i++) {
|
||||||
if (strlen(_keycode_to_name[i].name) == end - start && strncasecmp(start, _keycode_to_name[i].name, end - start) == 0) {
|
if (strlen(_keycode_to_name[i].name) == (size_t)(end - start) && strncasecmp(start, _keycode_to_name[i].name, end - start) == 0) {
|
||||||
return _keycode_to_name[i].keycode;
|
return _keycode_to_name[i].keycode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue