mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
chain: make some integer conversions explicit
We have an unsigned constant which we're bit-inverting, or'ing into a signed constant, then assigning back to the signed constant. We should make it explicit wth is going on here.
This commit is contained in:
parent
86d740b5eb
commit
f5ed4e4520
1 changed files with 1 additions and 1 deletions
|
|
@ -469,7 +469,7 @@ public:
|
|||
bool RemoveDynaFedMaskOnSerialize(bool for_read) {
|
||||
if (for_read) {
|
||||
bool is_dyna = nVersion < 0;
|
||||
nVersion = ~CBlockHeader::DYNAFED_HF_MASK & nVersion;
|
||||
nVersion = (int32_t) (~CBlockHeader::DYNAFED_HF_MASK & (uint32_t)nVersion);
|
||||
return is_dyna;
|
||||
} else {
|
||||
return is_dynafed_block();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue