fix wide difficulty conversion with some versions of boost

This commit is contained in:
moneromooo-monero
2019-05-01 19:57:34 +00:00
parent 581994b61c
commit e980938210
11 changed files with 25 additions and 25 deletions

View File

@@ -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>();
}
}