Fixed bug in map

This commit is contained in:
IlushaShurupov 2023-07-20 22:31:36 +03:00 committed by Ilya Shurupov
parent f5cab30f21
commit bd1a6a44db

View file

@ -247,7 +247,7 @@ namespace tp {
const tVal& getSlotVal(Idx slot) const { const tVal& getSlotVal(Idx slot) const {
DEBUG_ASSERT(slot.idx < mNSlots && (mTable[slot.idx] && !isDeletedNode(mTable[slot.idx])) && "Key Error") DEBUG_ASSERT(slot.idx < mNSlots && (mTable[slot.idx] && !isDeletedNode(mTable[slot.idx])) && "Key Error")
return mTable[slot]->val; return mTable[slot.idx]->val;
} }
tVal& getSlotVal(Idx slot) { tVal& getSlotVal(Idx slot) {