summaryrefslogtreecommitdiff
path: root/src/strgen
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-22 22:04:48 +0000
committersmatz <smatz@openttd.org>2009-06-22 22:04:48 +0000
commit4f0e62deb63afa2019c0e2d1d2ea4ca552743998 (patch)
treec592ed478fea2d9b41cb2f433c73ee4034a10ece /src/strgen
parent0a03b9becfc7f8d27a106e3a6aaed9a43e1bd2b4 (diff)
downloadopenttd-4f0e62deb63afa2019c0e2d1d2ea4ca552743998.tar.xz
(svn r16627) -Fix: warning about comparing signed and unsigned types
Diffstat (limited to 'src/strgen')
-rw-r--r--src/strgen/strgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strgen/strgen.cpp b/src/strgen/strgen.cpp
index 78e074caa..236597cdd 100644
--- a/src/strgen/strgen.cpp
+++ b/src/strgen/strgen.cpp
@@ -534,7 +534,7 @@ static void HandlePragma(char *str)
} else if (!memcmp(str, "winlangid ", 10)) {
const char *buf = str + 10;
long langid = strtol(buf, NULL, 16);
- if (langid > UINT16_MAX || langid < 0) {
+ if (langid > (long)UINT16_MAX || langid < 0) {
error("Invalid winlangid %s", buf);
}
_lang_winlangid = (uint16)langid;