From ee829bc29223a6cd0719ed46126206dc4effcee2 Mon Sep 17 00:00:00 2001 From: Jan-Olof Hendig Date: Fri, 21 Jun 2019 13:07:46 +0200 Subject: [PATCH] Restore accidentally deleted call to mp_neg() It seems to have accidentally been forgotten during recent refactoring/optimization. Only affected 32 bit. Fixes M#1104. --- src/math/bigintops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/math/bigintops.c b/src/math/bigintops.c index 1a7d94200c..b1e1e43531 100644 --- a/src/math/bigintops.c +++ b/src/math/bigintops.c @@ -188,6 +188,7 @@ static mp_int * force_bigint(MVMThreadContext *tc, const MVMP6bigintBody *body, } else { mp_set_int(i, -value); + mp_neg(i, i); } return i; }