diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-05-01 19:57:34 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-05-01 19:58:09 +0000 |
commit | e9809382109765ce53fcbd95e1fc593d9b19e184 (patch) | |
tree | f79bcb4fd4f14e9b262f67c70b4181f6df86b5eb /tests/hash-target.cpp | |
parent | Merge pull request #5486 (diff) | |
download | monero-e9809382109765ce53fcbd95e1fc593d9b19e184.tar.xz |
fix wide difficulty conversion with some versions of boost
Diffstat (limited to '')
-rw-r--r-- | tests/hash-target.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hash-target.cpp b/tests/hash-target.cpp index 1e988c302..e95475cac 100644 --- a/tests/hash-target.cpp +++ b/tests/hash-target.cpp @@ -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; |