(svn r16627) -Fix: warning about comparing signed and unsigned types

This commit is contained in:
smatz 2009-06-22 22:04:48 +00:00
parent 0a03b9becf
commit 4f0e62deb6
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ static void HandlePragma(char *str)
} else if (!memcmp(str, "winlangid ", 10)) { } else if (!memcmp(str, "winlangid ", 10)) {
const char *buf = str + 10; const char *buf = str + 10;
long langid = strtol(buf, NULL, 16); long langid = strtol(buf, NULL, 16);
if (langid > UINT16_MAX || langid < 0) { if (langid > (long)UINT16_MAX || langid < 0) {
error("Invalid winlangid %s", buf); error("Invalid winlangid %s", buf);
} }
_lang_winlangid = (uint16)langid; _lang_winlangid = (uint16)langid;