aboutsummaryrefslogtreecommitdiffstats
path: root/src/math/bigint/big_ops2.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-07-31 22:54:50 +0000
committerlloyd <[email protected]>2012-07-31 22:54:50 +0000
commit759a5cc81a59c5315144c332aea412213fc58960 (patch)
tree7071f13709e5b00415eae5e0e062a6dd548bd42a /src/math/bigint/big_ops2.cpp
parente74d42c531be30652920f955d7713174f2cb9f7d (diff)
m_ namespace BigInt members
Diffstat (limited to 'src/math/bigint/big_ops2.cpp')
-rw-r--r--src/math/bigint/big_ops2.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/math/bigint/big_ops2.cpp b/src/math/bigint/big_ops2.cpp
index ea2bdc961..d00d1995d 100644
--- a/src/math/bigint/big_ops2.cpp
+++ b/src/math/bigint/big_ops2.cpp
@@ -32,12 +32,12 @@ 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(&reg[0], &z[0], z.size());
+ copy_mem(&m_reg[0], &z[0], z.size());
set_sign(y.sign());
}
else if(relative_size == 0)
{
- zeroise(reg);
+ zeroise(m_reg);
set_sign(Positive);
}
else if(relative_size > 0)
@@ -159,7 +159,7 @@ word BigInt::operator%=(word mod)
word result = (word_at(0) & (mod - 1));
clear();
grow_to(2);
- reg[0] = result;
+ m_reg[0] = result;
return result;
}
@@ -171,9 +171,9 @@ word BigInt::operator%=(word mod)
grow_to(2);
if(remainder && sign() == BigInt::Negative)
- reg[0] = mod - remainder;
+ m_reg[0] = mod - remainder;
else
- reg[0] = remainder;
+ m_reg[0] = remainder;
set_sign(BigInt::Positive);