mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 13:56:06 -04:00
fix wide difficulty conversion with some versions of boost
This commit is contained in:
parent
581994b61c
commit
e980938210
11 changed files with 25 additions and 25 deletions
|
@ -365,11 +365,11 @@ namespace boost
|
|||
else
|
||||
{
|
||||
// store high part
|
||||
cryptonote::difficulty_type x_ = x >> 64;
|
||||
cryptonote::difficulty_type x_ = (x >> 64) & 0xffffffffffffffff;
|
||||
uint64_t v = x_.convert_to<uint64_t>();
|
||||
a & v;
|
||||
// store low part
|
||||
x_ = x << 64 >> 64;
|
||||
x_ = x & 0xffffffffffffffff;
|
||||
v = x_.convert_to<uint64_t>();
|
||||
a & v;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue