Do not fetch a node index if we have a perfectly fine pointer already at hand.
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 6 Oct 2008 06:58:25 +0000 (06:58 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 6 Oct 2008 06:58:25 +0000 (06:58 +0000)
[r22509]

heuristical.c

index f2c77f3..7605ffb 100644 (file)
@@ -288,7 +288,7 @@ void solve_pbqp_heuristical(pbqp *pbqp)
                        pbqp_edge *edge = edges[edge_index];
 
                        /* Simplify only once per edge. */
-                       if (node_index != edge->src->index) continue;
+                       if (node != edge->src) continue;
 
                        simplify_edge(pbqp, edge);
                }