From 09bfbee90ef969e5eb7bb8ff1b58802be8c23815 Mon Sep 17 00:00:00 2001 From: yexo Date: Sun, 1 Aug 2010 10:53:39 +0000 Subject: [PATCH] (svn r20275) -Fix (r20274): some compilers are complaining about signed/unsigned comparison --- src/hotkeys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotkeys.cpp b/src/hotkeys.cpp index 2dbad3ce9f..74802bf06a 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; } }