From 74cbc1603b37a09f11bea82944926bf2fbed0ebf Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Sat, 4 Oct 2008 19:15:35 +0000 Subject: [PATCH] Bugfix: Update bucket_index if reordering node. [r22482] --- heuristical.c | 1 + 1 file changed, 1 insertion(+) diff --git a/heuristical.c b/heuristical.c index 9ad9b2969..c320764fd 100644 --- a/heuristical.c +++ b/heuristical.c @@ -232,6 +232,7 @@ static void reorder_node(pbqp_node *node) ARR_SHRINKLEN(node_buckets[old_arity], (int)old_bucket_len - 1); /* ..and add to new one. */ + node->bucket_index = ARR_LEN(node_buckets[arity]); ARR_APP1(pbqp_node *, node_buckets[arity], node); } -- 2.20.1