aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/bigint/big_ops2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/bigint/big_ops2.cpp')
-rw-r--r--src/math/bigint/big_ops2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/bigint/big_ops2.cpp b/src/math/bigint/big_ops2.cpp
index d00d1995d..ec5197090 100644
--- a/src/math/bigint/big_ops2.cpp
+++ b/src/math/bigint/big_ops2.cpp
@@ -32,7 +32,7 @@ BigInt& BigInt::operator+=(const BigInt& y)
{
secure_vector<word> z(reg_size - 1);
bigint_sub3(&z[0], y.data(), reg_size - 1, data(), x_sw);
- copy_mem(&m_reg[0], &z[0], z.size());
+ std::swap(m_reg, z);
set_sign(y.sign());
}
else if(relative_size == 0)