summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp2.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 08:22:22 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:56 +0200
commit220777144d5892ecc0f689450c42b2bec0607d68 (patch)
treef69cd34e128863cd68db466c1195f92b94a80aab /ir/be/becopyilp2.c
parent7d61ad5fbb6a87bea369c8a01103a92d9ab79a48 (diff)
Add wrapper macros for set_first() and set_next(), which have the return type as additional parameter.
Diffstat (limited to 'ir/be/becopyilp2.c')
-rw-r--r--ir/be/becopyilp2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c
index b4c5213..408ee27 100644
--- a/ir/be/becopyilp2.c
+++ b/ir/be/becopyilp2.c
@@ -401,8 +401,7 @@ static void build_clique_star_cstr(ilp_env_t *ienv)
bool growed;
/* get 2 starting nodes to form a clique */
- for (e=(edge_t*)set_first(edges); !e->n1; e=(edge_t*)set_next(edges)) {
- }
+ for (e = set_first(edge_t, edges); !e->n1; e = set_next(edge_t, edges)) {}
/* we could be stepped out of the loop before the set iterated to the end */
set_break(edges);