X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmain.h;h=c9e3fd5a0ce68a3ac087c083e12738e6cc405c48;hb=5f3f7465db4444e49dd4a896f88c090b40d0a303;hp=a36f32840b0e762ca80cbfb65c7d62daecd1a123;hpb=e002a4b3f2d2f90739f0204031aba2ba1fddfd22;p=novacoin.git diff --git a/src/main.h b/src/main.h index a36f328..c9e3fd5 100644 --- a/src/main.h +++ b/src/main.h @@ -963,7 +963,7 @@ public: if (nHeight >= 9689 || fTestNet) { // Take last bit of block hash as entropy bit - unsigned int nEntropyBit = ((GetHash().Get64()) & 1ULL); + unsigned int nEntropyBit = (GetHash().Get64()) & (uint64_t)1; if (fDebug && GetBoolArg("-printstakemodifier")) printf("GetStakeEntropyBit: nTime=%u hashBlock=%s nEntropyBit=%u\n", nTime, GetHash().ToString().c_str(), nEntropyBit); return nEntropyBit;