forked from lthn/blockchain
warning fixed (thanks to @crypto_zoidberg)
This commit is contained in:
parent
c8b52f6e96
commit
5bb31e3282
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ namespace crypto
|
|||
explicit scalar_t(const boost::multiprecision::number<T>& bigint)
|
||||
{
|
||||
zero();
|
||||
unsigned int bytes_to_copy = bigint.backend().size() * bigint.backend().limb_bits / 8;
|
||||
size_t bytes_to_copy = bigint.backend().size() * bigint.backend().limb_bits / 8;
|
||||
if (bytes_to_copy > sizeof *this)
|
||||
bytes_to_copy = sizeof *this;
|
||||
memcpy(&m_s[0], bigint.backend().limbs(), bytes_to_copy);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue