Skip to content

Commit

Permalink
Cast 0 to uint32_t in SetStakeEntropyBit conditional
Browse files Browse the repository at this point in the history
This eliminates the compiler warning about enumerated vs
non-enumerated type in conditional.
  • Loading branch information
jamescowens committed Mar 18, 2024
1 parent 1359cbe commit 4b8557f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4b8557f

Please sign in to comment.