mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
fix(kernel/std): 🐛 correct bucket assignment inside [] operator in std::unordered_map
This commit is contained in:
parent
d20d4f7bf9
commit
4929b76c7c
@ -908,6 +908,7 @@ namespace std
|
|||||||
index = hashFunction(key) % buckets.size();
|
index = hashFunction(key) % buckets.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bucket = buckets[index];
|
||||||
return bucket.back().second;
|
return bucket.back().second;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -934,6 +935,7 @@ namespace std
|
|||||||
index = hashFunction(key) % buckets.size();
|
index = hashFunction(key) % buckets.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bucket = buckets[index];
|
||||||
return bucket.back().second;
|
return bucket.back().second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user