Polish

parent 549b20b0
......@@ -246,7 +246,8 @@ wadj_update(void *arg)
}
assert(u < vd->n_backend); // assert(found)
}
vd->total_weight += w - vd->weight[u];
vd->total_weight += w;
vd->total_weight -= vd->weight[u];
vd->weight[u] = w;
/* arbitrary safety measure against precision loss */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment