refactor: use braced init for integer constants instead of c style casts

This commit is contained in:
Pasta 2021-12-18 12:50:58 -05:00 committed by pasta
parent 3f8591d46b
commit f2fc03ec85
No known key found for this signature in database
GPG key ID: 52527BEDABE87984
23 changed files with 47 additions and 47 deletions

View file

@ -195,7 +195,7 @@ protected:
public:
explicit VersionBitsConditionChecker(Consensus::DeploymentPos id_) : id(id_) {}
uint32_t Mask(const Consensus::Params& params) const { return ((uint32_t)1) << params.vDeployments[id].bit; }
uint32_t Mask(const Consensus::Params& params) const { return (uint32_t{1}) << params.vDeployments[id].bit; }
};
} // namespace