make allocation C-like
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 22 Dec 2004 11:04:09 +0000 (11:04 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 22 Dec 2004 11:04:09 +0000 (11:04 +0000)
ir/be/bechordal.c

index e7a0812..bd9298b 100644 (file)
@@ -86,7 +86,7 @@ static void draw_interval_graphs(ir_node *block,
 
        if((f = fopen(buf, "wt")) != NULL) {
                border_t *b;
-               int *seen = calloc(get_graph_node_count(irg), sizeof(int));
+               int *seen = calloc(get_graph_node_count(irg), sizeof(*seen));
                int last_pos = list_empty(border_head) ? 0 : list_entry(border_head->prev, border_t, list)->step;
                int max_col = 0;