From 4f0e62deb63afa2019c0e2d1d2ea4ca552743998 Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 22 Jun 2009 22:04:48 +0000 Subject: (svn r16627) -Fix: warning about comparing signed and unsigned types --- src/strgen/strgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/strgen') 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; -- cgit v1.2.3-70-g09d2