fix bestate code not respecting prolog/epilog
[libfirm] / ir / adt / bipartite.c
index 16530a1..8c0f628 100644 (file)
@@ -32,7 +32,7 @@
 #include "bipartite.h"
 #include "xmalloc.h"
 
-struct _bipartite_t {
+struct bipartite_t {
        int n_left, n_right;
        bitset_t *adj[1];
 };
@@ -150,7 +150,8 @@ void bipartite_matching(const bipartite_t *gr, int *matching)
        bitset_t *matched_right = bitset_alloca(gr->n_right);
 
        memset(matching, -1, gr->n_left * sizeof(int));
-       while (apply_alternating_path(gr, matching, matched_left, matched_right));
+       while (apply_alternating_path(gr, matching, matched_left, matched_right)) {
+       }
 }
 
 void bipartite_dump_f(FILE *f, const bipartite_t *gr)