Browse Source

fix: TWO has private access in java.math.BigInteger

pull/8/head
Dominique Merle 1 year ago
parent
commit
372b87f648
  1. 2
      src/main/java/fr/mieuxvoter/mj/ProposalTallyAnalysis.java

2
src/main/java/fr/mieuxvoter/mj/ProposalTallyAnalysis.java

@ -73,7 +73,7 @@ public class ProposalTallyAnalysis {
if ( ! favorContestation) {
medianOffset = 2;
}
BigInteger medianCursor = this.totalSize.add(BigInteger.valueOf(medianOffset)).divide(BigInteger.TWO);
BigInteger medianCursor = this.totalSize.add(BigInteger.valueOf(medianOffset)).divide(BigInteger.valueOf(2));
// Long medianCursor = (long) Math.floor((this.totalSize + medianOffset) / 2.0);
BigInteger tallyBeforeCursor = BigInteger.ZERO;

Loading…
Cancel
Save