From 1de7551c45e12a170720c905284c4aafa3e5d4ae Mon Sep 17 00:00:00 2001 From: Sean Date: Tue, 31 Oct 2023 15:54:24 +0900 Subject: [PATCH] fix: `wordIndex` --- contracts/MinBitMap.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/MinBitMap.sol b/contracts/MinBitMap.sol index 0fa0ed7..bca6800 100644 --- a/contracts/MinBitMap.sol +++ b/contracts/MinBitMap.sol @@ -74,7 +74,7 @@ library MinBitMap { word = core.bitmapMapping[wordIndex]; core.bitmapMapping[wordIndex] = word & (~mask); if (mask == word) { - mask = 1 << (rootWordIndex >> 16); + mask = 1 << (~wordIndex); core.bitmap = core.bitmap & (~mask); } }