[ox] Fix for MSVC

This commit is contained in:
2022-03-12 11:48:58 -06:00
parent c6780e41dd
commit 0739c7d611
10 changed files with 31 additions and 15 deletions

View File

@@ -176,13 +176,13 @@ void HashMap<K, T>::erase(const K &k) {
while (true) {
const auto &p = m_pairs[h];
if (p == nullptr || ox_strcmp(p->key, k) == 0) {
m_pairs.erase(h);
oxIgnoreError(m_pairs.erase(h));
break;
} else {
h = hash(hashStr, 8) % m_pairs.size();
}
}
m_keys.erase(ox::find(m_keys.begin(), m_keys.end(), k));
oxIgnoreError(m_keys.erase(ox::find(m_keys.begin(), m_keys.end(), k)));
}
template<typename K, typename T>