diff --git a/src/primitives/block.cpp b/src/primitives/block.cpp index f768f35014..0f5d58e543 100644 --- a/src/primitives/block.cpp +++ b/src/primitives/block.cpp @@ -29,7 +29,7 @@ uint256 CBlockHeader::GetHash() const bool is_dyna = false; int32_t nVersion = this->nVersion; if (!m_dynafed_params.IsNull()) { - nVersion |= DYNAFED_HF_MASK; + nVersion |= (int32_t)DYNAFED_HF_MASK; is_dyna = true; } s << (nVersion);