summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyopt_t.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-12 19:26:10 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:56 +0200
commit7d61ad5fbb6a87bea369c8a01103a92d9ab79a48 (patch)
tree2d9a76fc0124fb0cdda9336c961907ce7b3e46fc /ir/be/becopyopt_t.h
parentc6571686bfbfb3c87ae24ae1dc568e685d6cd49a (diff)
Add the return type as parameter to the macros set_find() and set_insert().
Diffstat (limited to 'ir/be/becopyopt_t.h')
-rw-r--r--ir/be/becopyopt_t.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/becopyopt_t.h b/ir/be/becopyopt_t.h
index b5bf032..e32ae71 100644
--- a/ir/be/becopyopt_t.h
+++ b/ir/be/becopyopt_t.h
@@ -146,7 +146,7 @@ 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))