forked from bartvdbraak/blender
- Fix for compiler error regarding overloaded binary equality operator not defined on MSVC
This commit is contained in:
parent
bb2a34c60b
commit
56f3fbb715
@ -106,7 +106,7 @@ public:
|
|||||||
|
|
||||||
void insert(const Key& key, const Value& value) {
|
void insert(const Key& key, const Value& value) {
|
||||||
Entry *entry_ptr = m_buckets[key.hash() % m_num_buckets];
|
Entry *entry_ptr = m_buckets[key.hash() % m_num_buckets];
|
||||||
while ((entry_ptr != 0) && !(key == entry_ptr->m_key)) {
|
while ((entry_ptr != 0) && !(&key == &entry_ptr->m_key)) {
|
||||||
entry_ptr = entry_ptr->m_next;
|
entry_ptr = entry_ptr->m_next;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ public:
|
|||||||
|
|
||||||
Value *operator[](Key key) {
|
Value *operator[](Key key) {
|
||||||
Entry *bucket = m_buckets[key.hash() % m_num_buckets];
|
Entry *bucket = m_buckets[key.hash() % m_num_buckets];
|
||||||
while ((bucket != 0) && !(key == bucket->m_key)) {
|
while ((bucket != 0) && !(&key == &bucket->m_key)) {
|
||||||
bucket = bucket->m_next;
|
bucket = bucket->m_next;
|
||||||
}
|
}
|
||||||
return bucket != 0 ? &bucket->m_value : 0;
|
return bucket != 0 ? &bucket->m_value : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user