Liebe bugs part2: switch cases are analyzed in long variables, use LONG_MAX and LONG_MIN
authorMatthias Braun <matze@braunis.de>
Thu, 7 Jan 2010 15:57:08 +0000 (15:57 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 7 Jan 2010 15:57:08 +0000 (15:57 +0000)
[r26915]

ir/be/ia32/ia32_emitter.c

index 567e94e..2de3849 100644 (file)
@@ -1226,8 +1226,8 @@ static void generate_jump_table(jmp_tbl_t *tbl, const ir_node *node)
        tbl->defProj      = NULL;
        tbl->num_branches = get_irn_n_edges(node) - 1;
        tbl->branches     = XMALLOCNZ(branch_t, tbl->num_branches);
-       tbl->min_value    = INT_MAX;
-       tbl->max_value    = INT_MIN;
+       tbl->min_value    = LONG_MAX;
+       tbl->max_value    = LONG_MIN;
 
        default_pn = get_ia32_condcode(node);
        i = 0;