From 506423738bdd438ce4609b37e9b3896189e8c483 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 28 May 2008 12:53:43 +0000 Subject: [PATCH] fixed warning for 64bit build [r19808] --- lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexer.c b/lexer.c index cba071b..faecfe3 100644 --- a/lexer.c +++ b/lexer.c @@ -343,7 +343,7 @@ static void parse_integer_suffix(bool is_oct_hex) if(v >= TARGET_LONG_MIN && v <= TARGET_LONG_MAX) { lexer_token.datatype = type_long; return; - } else if(is_oct_hex && v >= 0 && v <= TARGET_ULONG_MAX) { + } else if(is_oct_hex && v >= 0 && (unsigned long long)v <= (unsigned long long)TARGET_ULONG_MAX) { lexer_token.datatype = type_unsigned_long; return; } -- 2.20.1