mirror of
https://github.com/monero-project/monero.git
synced 2025-06-13 20:32:57 -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
|
@ -61,7 +61,7 @@ int main(int argc, char *argv[]) {
|
|||
for (int i = 31; i >= 0; i--) {
|
||||
val = val * 256 + 255;
|
||||
((char *) &h)[i] = static_cast<char>(static_cast<uint64_t>(val / diff));
|
||||
val %= diff.convert_to<uint64_t>();
|
||||
val %= (diff & 0xffffffffffffffff).convert_to<uint64_t>();
|
||||
}
|
||||
if (check_hash(h, diff) != true) {
|
||||
return 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue