From 119a0654241c4bc2d4b4e007fa9b13d2be730b0d Mon Sep 17 00:00:00 2001 From: SChernykh Date: Thu, 2 Jul 2020 14:29:52 +0200 Subject: [PATCH] Fix typo --- src/backend/common/WorkerJob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/common/WorkerJob.h b/src/backend/common/WorkerJob.h index 19a8e8c7..51e25bff 100644 --- a/src/backend/common/WorkerJob.h +++ b/src/backend/common/WorkerJob.h @@ -144,7 +144,7 @@ inline bool xmrig::WorkerJob<1>::nextRound(uint32_t rounds, uint32_t roundSize) const bool wraps_this_round = (static_cast(*n) + roundSize > (1ULL << 32)); // 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[1];