From 372b87f648249341f7ea289d8b4ba35a518452fe Mon Sep 17 00:00:00 2001 From: domi41 Date: Sun, 9 May 2021 20:31:32 +0200 Subject: [PATCH] fix: TWO has private access in java.math.BigInteger --- src/main/java/fr/mieuxvoter/mj/ProposalTallyAnalysis.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/mieuxvoter/mj/ProposalTallyAnalysis.java b/src/main/java/fr/mieuxvoter/mj/ProposalTallyAnalysis.java index a15e933..72625f3 100644 --- a/src/main/java/fr/mieuxvoter/mj/ProposalTallyAnalysis.java +++ b/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;