Skip to content

Commit

Permalink
Fix ankerl lines of not using get_key
Browse files Browse the repository at this point in the history
  • Loading branch information
weiliw-amz committed Jul 20, 2023
1 parent a84f6e4 commit de0ff05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pecos/core/third_party/ankerl/unordered_dense.h
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ class table : public std::conditional_t<is_map_v<T>, base_table_type_map<T>, bas
while (true) {
auto* bucket = &at(m_buckets, bucket_idx);
if (dist_and_fingerprint == bucket->m_dist_and_fingerprint) {
if (m_equal(key, m_values[bucket->m_value_idx].first)) {
if (m_equal(key, get_key(m_values[bucket->m_value_idx]))) {
return {begin() + static_cast<difference_type>(bucket->m_value_idx), false};
}
} else if (dist_and_fingerprint > bucket->m_dist_and_fingerprint) {
Expand Down Expand Up @@ -1419,7 +1419,7 @@ class table : public std::conditional_t<is_map_v<T>, base_table_type_map<T>, bas
break;
}
if (dist_and_fingerprint == bucket.m_dist_and_fingerprint &&
m_equal(key, m_values[bucket.m_value_idx].first)) {
m_equal(key, get_key(m_values[bucket.m_value_idx]))) {
key_found = true;
break;
}
Expand Down

0 comments on commit de0ff05

Please sign in to comment.