diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2004-04-13 06:14:05 +0400 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2004-04-13 06:14:05 +0400 |
commit | 56f3fbb715432fd8b8f90c30e833321c8cba4195 (patch) | |
tree | 824c6295e9a8d9c56eef0e4fc5f43d08dc7f5370 /source/kernel/gen_system | |
parent | bb2a34c60b29e57ec3ef071c6eea63b618531c71 (diff) |
- Fix for compiler error regarding overloaded binary equality operator not defined on MSVC
Diffstat (limited to 'source/kernel/gen_system')
-rw-r--r-- | source/kernel/gen_system/GEN_Map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/kernel/gen_system/GEN_Map.h b/source/kernel/gen_system/GEN_Map.h index a01d6c3f6be..d71ae84ec64 100644 --- a/source/kernel/gen_system/GEN_Map.h +++ b/source/kernel/gen_system/GEN_Map.h @@ -106,7 +106,7 @@ public: void insert(const Key& key, const Value& value) { 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; } @@ -134,7 +134,7 @@ public: Value *operator[](Key key) { 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; } return bucket != 0 ? &bucket->m_value : 0; |