@@ -50,7 +50,7 @@ static void MerkleComputation(const std::vector<uint256>& leaves, uint256* proot
5050 // For each of the lower bits in count that are 0, do 1 step. Each
5151 // corresponds to an inner value that existed before processing the
5252 // current leaf, and each needs a hash to combine it.
53- for (level = 0 ; !(count & ((( uint32_t ) 1 ) << level)); level++) {
53+ for (level = 0 ; !(count & ((uint32_t { 1 } ) << level)); level++) {
5454 if (pbranch) {
5555 if (matchh) {
5656 pbranch->push_back (inner[level]);
@@ -74,12 +74,12 @@ static void MerkleComputation(const std::vector<uint256>& leaves, uint256* proot
7474 int level = 0 ;
7575 // As long as bit number level in count is zero, skip it. It means there
7676 // is nothing left at this level.
77- while (!(count & ((( uint32_t ) 1 ) << level))) {
77+ while (!(count & ((uint32_t { 1 } ) << level))) {
7878 level++;
7979 }
8080 uint256 h = inner[level];
8181 bool matchh = matchlevel == level;
82- while (count != ((( uint32_t ) 1 ) << level)) {
82+ while (count != ((uint32_t { 1 } ) << level)) {
8383 // If we reach this point, h is an inner value that is not the top.
8484 // We combine it with itself (Bitcoin's special rule for odd levels in
8585 // the tree) to produce a higher level one.
@@ -89,10 +89,10 @@ static void MerkleComputation(const std::vector<uint256>& leaves, uint256* proot
8989 CHash256 ().Write (h).Write (h).Finalize (h);
9090 // Increment count to the value it would have if two entries at this
9191 // level had existed.
92- count += ((( uint32_t ) 1 ) << level);
92+ count += ((uint32_t { 1 } ) << level);
9393 level++;
9494 // And propagate the result upwards accordingly.
95- while (!(count & ((( uint32_t ) 1 ) << level))) {
95+ while (!(count & ((uint32_t { 1 } ) << level))) {
9696 if (pbranch) {
9797 if (matchh) {
9898 pbranch->push_back (inner[level]);
0 commit comments