4
0
mirror of https://github.com/QuasarApp/qca.git synced 2025-05-08 08:49:34 +00:00

Add operator= to BigInt

Also make it just be implemented with the default as the tests
show that is enough

Fixes warning in newer gcc
This commit is contained in:
Albert Astals Cid 2020-02-11 16:26:03 +01:00
parent 001f827a4f
commit a29518b978
2 changed files with 3 additions and 0 deletions
src/botantools/botan

@ -94,6 +94,8 @@ BigInt::BigInt(const BigInt& b)
}
}
BigInt &BigInt::operator=(const BigInt&) = default;
/*************************************************
* Construct a BigInt from a string *
*************************************************/

@ -150,6 +150,7 @@ class BigInt // clazy:exclude=rule-of-three TODO Needs checking if a real bug or
#ifndef BOTAN_MINIMAL_BIGINT
BigInt(NumberType, u32bit);
#endif
BigInt &operator=(const BigInt&);
private:
void grow_to(u32bit) const;
SecureVector<word> reg;