From 93d1b1528592ca129109b4630c17fa5372e4048a Mon Sep 17 00:00:00 2001
From: Anthony Towns <aj@erisian.com.au>
Date: Tue, 13 Apr 2021 10:45:02 +1000
Subject: BIP341: add brackets to avoid ambiguity due to precendence rules
 around bipwise ops

---
 bip-0341.mediawiki | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'bip-0341.mediawiki')

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++;
             }
         }
-- 
cgit v1.2.3

