X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=lexer.c;h=faecfe36fd75f32a12ceca0c883bdb597f1e97b1;hb=607199c1e8e96b833d4a42f065dd3deb147e7680;hp=cba071b07289f0ebe3f86dac35d846c7ed4411e4;hpb=70abad8ade78c811d76cc79741fccfc6bd7d58ab;p=cparser 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; }