From: Matthias Braun Date: Tue, 7 Jun 2011 10:41:42 +0000 (+0200) Subject: long overflows at LONG_MAX not at INT_MAX X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=769ceb3899516a85ca9b2eeed654c4e4af92ee4c;p=cparser long overflows at LONG_MAX not at INT_MAX --- diff --git a/ast2firm.c b/ast2firm.c index 1cc4195..53edbdd 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -5103,7 +5103,7 @@ static void switch_statement_to_firm(switch_statement_t *statement) default_proj_nr = l->last_case; } - if (default_proj_nr == INT_MAX) { + if (default_proj_nr == LONG_MAX) { /* Bad: an overflow will occur, we cannot be sure that the * maximum + 1 is a free number. Scan the values a second * time to find a free number.