aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/bigint/big_ops3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/math/bigint/big_ops3.cpp')
-rw-r--r--src/lib/math/bigint/big_ops3.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/math/bigint/big_ops3.cpp b/src/lib/math/bigint/big_ops3.cpp
index eed8a29a0..680eca635 100644
--- a/src/lib/math/bigint/big_ops3.cpp
+++ b/src/lib/math/bigint/big_ops3.cpp
@@ -66,6 +66,7 @@ BigInt operator-(const BigInt& x, const BigInt& y)
{
if(x.sign() != y.sign())
bigint_shl2(z.mutable_data(), x.data(), x_sw, 0, 1);
+ z.set_sign(y.reverse_sign());
}
else if(relative_size > 0)
{