From 8922ac3e031ddbd8f2c73a5e876d495f7216bab7 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 22 Dec 2004 11:04:09 +0000 Subject: [PATCH] make allocation C-like --- ir/be/bechordal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/be/bechordal.c b/ir/be/bechordal.c index e7a0812e7..bd9298b2e 100644 --- a/ir/be/bechordal.c +++ b/ir/be/bechordal.c @@ -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; -- 2.20.1