X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyopt_t.h;h=56f3da7fdea0fdd78c021d6de8d8e9f4e40a89d4;hb=3c3425a50a1d721b74a015c6812257e32feeac85;hp=b5bf032286cebd193962a814128481c1fc12eb93;hpb=c6571686bfbfb3c87ae24ae1dc568e685d6cd49a;p=libfirm diff --git a/ir/be/becopyopt_t.h b/ir/be/becopyopt_t.h index b5bf03228..56f3da7fd 100644 --- a/ir/be/becopyopt_t.h +++ b/ir/be/becopyopt_t.h @@ -146,10 +146,10 @@ static inline affinity_node_t *get_affinity_info(const copy_opt_t *co, const ir_ ASSERT_GS_AVAIL(co); find.irn = irn; - return (affinity_node_t*)set_find(co->nodes, &find, sizeof(find), hash_irn(irn)); + return set_find(affinity_node_t, co->nodes, &find, sizeof(find), hash_irn(irn)); } #define co_gs_foreach_aff_node(co, aff_node) foreach_set((co)->nodes, affinity_node_t, (aff_node)) -#define co_gs_foreach_neighb(aff_node, neighb) for (neighb = aff_node->neighbours; neighb != NULL; neighb = neighb->next) +#define co_gs_foreach_neighb(aff_node, neighb) for (neighb_t *neighb = aff_node->neighbours; neighb; neighb = neighb->next) #endif /* FIRM_BE_BECOPYOPT_T_H */