summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-08-01 10:53:39 +0000
committeryexo <yexo@openttd.org>2010-08-01 10:53:39 +0000
commit09bfbee90ef969e5eb7bb8ff1b58802be8c23815 (patch)
treed844b87f498d3ba10d901ad17da8a0f2732d2845 /src
parentdc3271b705a44a851d94f5fc5088249e8291fa57 (diff)
downloadopenttd-09bfbee90ef969e5eb7bb8ff1b58802be8c23815.tar.xz
(svn r20275) -Fix (r20274): some compilers are complaining about signed/unsigned comparison
Diffstat (limited to 'src')
-rw-r--r--src/hotkeys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp
index 2dbad3ce9..74802bf06 100644
--- a/src/hotkeys.cpp
+++ b/src/hotkeys.cpp
@@ -70,7 +70,7 @@ static uint16 ParseCode(const char *start, const char *end)
while (start < end && *start == ' ') start++;
while (end > start && *end == ' ') end--;
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;
}
}