mirror of
https://github.com/bitcoin/bips.git
synced 2025-01-18 21:35:13 +01:00
BIP341: add brackets to avoid ambiguity due to precendence rules around bipwise ops
This commit is contained in:
parent
ce5f89fe0d
commit
93d1b15285
@ -311,7 +311,7 @@ For Bitcoin mainnet and testnet3, these BIPs will be deployed by "version bits"
|
|||||||
walk = block;
|
walk = block;
|
||||||
for (i = 0; i < 2016; i++) {
|
for (i = 0; i < 2016; i++) {
|
||||||
walk = walk.parent;
|
walk = walk.parent;
|
||||||
if (walk.nVersion & 0xE0000000 == 0x20000000 && (walk.nVersion >> bit) & 1 == 1) {
|
if ((walk.nVersion & 0xE0000000) == 0x20000000 && ((walk.nVersion >> bit) & 1) == 1) {
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user