Skip to content

Commit 333ca65

Browse files
committed
Merge branch 'cbehan-patch-2'
2 parents 9455199 + 30bac96 commit 333ca65

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/algorithms/sort_product.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ Algorithm::result_t sort_product::apply(iterator& st)
142142
compare.clear();
143143
auto es=compare.equal_subtree(one, two);
144144
if(es==Ex_comparator::match_t::no_match_greater || es==Ex_comparator::match_t::match_index_greater) {
145-
--candidate;
146-
candidate=candidates.erase(candidate);
145+
candidate=candidates.erase(candidates.begin(), candidate);
147146
one=candidate->at(digit-1);
148147
++candidate;
149148
}

0 commit comments

Comments
 (0)