mirror of
https://github.com/monero-project/monero.git
synced 2026-01-01 23:40:03 -08:00
fix wide difficulty conversion with some versions of boost
This commit is contained in:
@@ -74,9 +74,9 @@ namespace
|
||||
|
||||
void store_difficulty(cryptonote::difficulty_type difficulty, uint64_t &sdiff, std::string &swdiff, uint64_t &stop64)
|
||||
{
|
||||
sdiff = (difficulty << 64 >> 64).convert_to<uint64_t>();
|
||||
sdiff = (difficulty & 0xffffffffffffffff).convert_to<uint64_t>();
|
||||
swdiff = cryptonote::hex(difficulty);
|
||||
stop64 = (difficulty >> 64).convert_to<uint64_t>();
|
||||
stop64 = ((difficulty >> 64) & 0xffffffffffffffff).convert_to<uint64_t>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user