Commit c53fca6c authored by Mathieu Giraud's avatar Mathieu Giraud

core/affectanalyser.cpp: .getMaximum(), cosmetic change

This changes nothing on results.max_found and on the segmentation,
but it ensures that first_pos_max and last_pos_mas are always
between 0 and the length of affectations. This is more symmetrical.
parent d3efe5e2
......@@ -109,7 +109,7 @@ affect_infos KmerAffectAnalyser::getMaximum(const KmerAffect &before,
affect_infos results;
results.max_found = false;
results.max_value = 0;
results.first_pos_max = results.last_pos_max = -1;
results.first_pos_max = results.last_pos_max = 0;
results.nb_before_left = results.nb_before_right = results.nb_after_right = results.nb_after_left = 0;
currentValue = 0;
......
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