Fixed bug in map
This commit is contained in:
parent
f5cab30f21
commit
bd1a6a44db
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue