From: Michael Beck Date: Mon, 18 Jun 2007 19:09:48 +0000 (+0000) Subject: fixed warning X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=50a52afa7974d04eb70aca36a09ce22efe790760;p=libfirm fixed warning [r14633] --- 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])); } /***************************************************************************************