[colocations] apply counts only to the "to" cases

(I used this already longer time but it was not yet committed)
This commit is contained in:
Barend Gehrels
2016-02-28 09:19:52 +01:00
parent d4620e56b3
commit 3f9505e3e6

View File

@@ -553,14 +553,14 @@ inline void assign_startable_in_clusters(Clusters& clusters, Turns& turns,
turn_type& turn = turns[ranked.turn_index];
turn_operation_type& op = turn.operations[ranked.op_index];
op.enriched.count_left = ranked.left_count;
op.enriched.count_right = ranked.right_count;
if (ranked.index != sort_by_side::index_to)
{
continue;
}
op.enriched.count_left = ranked.left_count;
op.enriched.count_right = ranked.right_count;
if ((for_operation == operation_union
&& ranked.left_count != 0)
|| (for_operation == operation_intersection