diff options
author | Anthony Towns <aj@erisian.com.au> | 2021-04-13 10:45:02 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2021-04-14 02:45:56 +1000 |
commit | 93d1b1528592ca129109b4630c17fa5372e4048a (patch) | |
tree | 95579076362b52be30e1e97ac5ee1faf8e42a0ba /bip-0341.mediawiki | |
parent | ce5f89fe0ddd99a00bcd1457df407cccd60a9336 (diff) | |
download | bips-93d1b1528592ca129109b4630c17fa5372e4048a.tar.xz |
BIP341: add brackets to avoid ambiguity due to precendence rules around bipwise ops
Diffstat (limited to 'bip-0341.mediawiki')
-rw-r--r-- | bip-0341.mediawiki | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0341.mediawiki b/bip-0341.mediawiki index f682d96..5450a08 100644 --- a/bip-0341.mediawiki +++ b/bip-0341.mediawiki @@ -311,7 +311,7 @@ For Bitcoin mainnet and testnet3, these BIPs will be deployed by "version bits" walk = block; for (i = 0; i < 2016; i++) { walk = walk.parent; - if (walk.nVersion & 0xE0000000 == 0x20000000 && (walk.nVersion >> bit) & 1 == 1) { + if ((walk.nVersion & 0xE0000000) == 0x20000000 && ((walk.nVersion >> bit) & 1) == 1) { count++; } } |