From 569f1fff329613e89711424d154e722f61315628 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 4 Oct 2020 02:19:31 +0100 Subject: [PATCH] seems to work ?? Signed-off-by: Ian Jackson --- templates/bigfloat.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/bigfloat.ts b/templates/bigfloat.ts index ee52034c..2bd16575 100644 --- a/templates/bigfloat.ts +++ b/templates/bigfloat.ts @@ -65,7 +65,9 @@ class Bigfloat { } private extend_left() { - this.limbs.unshift(Bigfloat.l0_value(this.limbs[0])); + let l0 = this.limbs[0] > Bigfloat.LIMB_NEGATIVE + ? Bigfloat.LIMB_MODULUS-1 : 0; + this.limbs.unshift(l0); this.exponent++; } -- 2.30.2