From 4b8557f7867541bc8d870d16255aa1a79c2466d3 Mon Sep 17 00:00:00 2001 From: "James C. Owens" Date: Sun, 17 Mar 2024 21:37:21 -0400 Subject: [PATCH] Cast 0 to uint32_t in SetStakeEntropyBit conditional This eliminates the compiler warning about enumerated vs non-enumerated type in conditional. --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.h b/src/main.h index a204117097..3afe3e45a5 100644 --- a/src/main.h +++ b/src/main.h @@ -630,7 +630,7 @@ class CBlockIndex { if (nEntropyBit > 1) return false; - nFlags |= (nEntropyBit? BLOCK_STAKE_ENTROPY : 0); + nFlags |= (nEntropyBit ? BLOCK_STAKE_ENTROPY : (uint32_t) 0); return true; }