X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fmain.h;h=da8d602a82fc25bb619c473852c6c73f60ef18e4;hp=b4187098131bfa437879c9a3b73177f0c74d2382;hb=e10fa48ea2c24f9647668aafa1f9caa48a51de2f;hpb=d6d558a15b40e14a3f9bf23308adf7a630a57485 diff --git a/src/main.h b/src/main.h index b418709..da8d602 100644 --- a/src/main.h +++ b/src/main.h @@ -962,7 +962,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;