diff options
Diffstat (limited to 'src/strgen/strgen.cpp')
-rw-r--r-- | src/strgen/strgen.cpp | 2 |
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; |