diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2004-04-13 22:11:10 +0400 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2004-04-13 22:11:10 +0400 |
commit | e0ea7a230a770e507800132d418e387c6222fa3b (patch) | |
tree | 6cd5944d815f9a4ce2b6fb82dba8c1c52d8dfd97 /source | |
parent | 8e3579d355c8a732b935fb59eae9632e41b2f620 (diff) |
- reversion to 1.5
Diffstat (limited to 'source')
-rw-r--r-- | source/kernel/gen_system/GEN_Map.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/kernel/gen_system/GEN_Map.h b/source/kernel/gen_system/GEN_Map.h index d71ae84ec64..f6823252fb1 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; @@ -147,3 +147,4 @@ private: #endif + |