mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-08-17 01:04:15 +00:00
fix(kernel/std): 🐛 correct bucket assignment inside [] operator in std::unordered_map
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user