From 50a52afa7974d04eb70aca36a09ce22efe790760 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 18 Jun 2007 19:09:48 +0000 Subject: [PATCH] fixed warning [r14633] --- ir/be/TEMPLATE/TEMPLATE_new_nodes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/be/TEMPLATE/TEMPLATE_new_nodes.c b/ir/be/TEMPLATE/TEMPLATE_new_nodes.c index fe14beaaf..8002c7cff 100644 --- a/ir/be/TEMPLATE/TEMPLATE_new_nodes.c +++ b/ir/be/TEMPLATE/TEMPLATE_new_nodes.c @@ -375,8 +375,8 @@ void init_TEMPLATE_attributes(ir_node *node, arch_irn_flags_t flags, attr->out_req = out_reqs; attr->in_req = in_reqs; - attr->slots = NEW_ARR_D(const arch_register_t*, obst, n_res); - memset(attr->slots, 0, n_res * sizeof(attr->slots[0])); + attr->slots = NEW_ARR_D(arch_register_t*, obst, n_res); + memset((arch_register_t **)attr->slots, 0, n_res * sizeof(attr->slots[0])); } /*************************************************************************************** -- 2.20.1