Commit dae1b805 authored by Mikaël Salson's avatar Mikaël Salson

AffectAnalyser: Bug correction in getAllAffectations()

Testing the function was not useless.
parent 5856abdb
......@@ -313,8 +313,10 @@ vector<T> KmerAffectAnalyser<T>::getAllAffectations(affect_options_t options) co
T previous = affectations[0];
result.push_back(previous);
for (size_t i = 1; i < affectations.size(); i++) {
if (! (previous == affectations[i]))
result.push_back(previous);
if (! (previous == affectations[i])) {
result.push_back(affectations[i]);
previous = affectations[i];
}
}
return result;
}
......
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