From a7ed7b48cf989be5e42a71f0540ad45f9f11bd85 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sat, 5 Aug 2017 14:34:57 -0700 Subject: [PATCH] Re-introduce arthur326's fix for ln speed. --- src/main/java/org/nwapw/abacus/plugin/StandardPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/nwapw/abacus/plugin/StandardPlugin.java b/src/main/java/org/nwapw/abacus/plugin/StandardPlugin.java index 95b33ec..c123caa 100755 --- a/src/main/java/org/nwapw/abacus/plugin/StandardPlugin.java +++ b/src/main/java/org/nwapw/abacus/plugin/StandardPlugin.java @@ -166,7 +166,7 @@ public class StandardPlugin extends Plugin { } else { param = param.multiply(new NaiveNumber(2).promoteTo(param.getClass())); powersOf2--; - if (param.subtract(NaiveNumber.ONE.promoteTo(param.getClass())).signum() != 1) { + if (param.subtract(NaiveNumber.ONE.promoteTo(param.getClass())).signum() != -1) { break; //No infinite loop for you. }