From e9809382109765ce53fcbd95e1fc593d9b19e184 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 1 May 2019 19:57:34 +0000 Subject: fix wide difficulty conversion with some versions of boost --- tests/hash-target.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/hash-target.cpp') 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(static_cast(val / diff)); - val %= diff.convert_to(); + val %= (diff & 0xffffffffffffffff).convert_to(); } if (check_hash(h, diff) != true) { return 3; -- cgit v1.2.3