Browse Source

fix: a ultimate, critical breaking bug, seconds before release of course

Ooops, that horrible bug would've been a pain to catch with testing!
pull/8/head 0.1.1
Dominique Merle 1 year ago
parent
commit
a6098b9c17
  1. 4
      src/main/java/fr/mieuxvoter/mj/MajorityJudgmentDeliberator.java

4
src/main/java/fr/mieuxvoter/mj/MajorityJudgmentDeliberator.java

@ -81,8 +81,8 @@ public class MajorityJudgmentDeliberator implements DeliberatorInterface {
) {
ProposalTallyAnalysis analysis = new ProposalTallyAnalysis();
int amountOfGrades = tally.getTally().length;
int digitsForGrade = ("" + amountOfGrades).length();
int digitsForGroup = ("" + amountOfJudges).length();
int digitsForGrade = ("" + amountOfGrades).length();
int digitsForGroup = ("" + amountOfJudges).length() + 1;
ProposalTallyInterface currentTally = tally.duplicate();

Loading…
Cancel
Save