Merge pull request #1761 from SChernykh/dev

Fix typo
This commit is contained in:
xmrig 2020-07-02 19:41:19 +07:00 committed by GitHub
commit ccfbba94f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,7 +144,7 @@ inline bool xmrig::WorkerJob<1>::nextRound(uint32_t rounds, uint32_t roundSize)
const bool wraps_this_round = (static_cast<uint64_t>(*n) + roundSize > (1ULL << 32)); const bool wraps_this_round = (static_cast<uint64_t>(*n) + roundSize > (1ULL << 32));
// Account for the case when starting nonce hasn't wrapped yet, but some nonces in the current round will wrap // Account for the case when starting nonce hasn't wrapped yet, but some nonces in the current round will wrap
if (wrapped | wraps_this_round) { if (wrapped || wraps_this_round) {
*n = 0; // Set lower 32 bits to 0 when higher 32 bits change *n = 0; // Set lower 32 bits to 0 when higher 32 bits change
++n[1]; ++n[1];