Fixed bug in map

This commit is contained in:
IlushaShurupov 2023-07-20 22:31:36 +03:00
parent 90998e2279
commit 0301f608bd

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) {