From 769ceb3899516a85ca9b2eeed654c4e4af92ee4c Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 7 Jun 2011 12:41:42 +0200 Subject: [PATCH] long overflows at LONG_MAX not at INT_MAX --- ast2firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.20.1