mirror of
https://github.com/monero-project/monero.git
synced 2026-01-07 19:00:59 -08:00
fix wide difficulty conversion with some versions of boost
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user