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); } }