Merge pull request #404 from blackball/master
Implement = operator for BigInteger
This commit is contained in:
commit
8498c785a6
@ -51,7 +51,14 @@ public:
|
|||||||
if (length > 0)
|
if (length > 0)
|
||||||
AppendDecimal64(decimals + i, decimals + i + length);
|
AppendDecimal64(decimals + i, decimals + i + length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BigInteger& operator=(const BigInteger &rhs)
|
||||||
|
{
|
||||||
|
count_ = rhs.count_;
|
||||||
|
std::memcpy(digits_, rhs.digits_, count_ * sizeof(Type));
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
BigInteger& operator=(uint64_t u) {
|
BigInteger& operator=(uint64_t u) {
|
||||||
digits_[0] = u;
|
digits_[0] = u;
|
||||||
count_ = 1;
|
count_ = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user