summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2018-10-12 08:42:19 +0200
committerGitHub <noreply@github.com>2018-10-12 08:42:19 +0200
commit5804efc6371fbfaec8fca6f237bd8478f2081086 (patch)
treee454ed7a95c1ea3fb421efe23afa1c144b0e9f35 /core
parent451e5fd0511bc2c17a66fc73a0de9a5169109517 (diff)
parent0353182e7ba925d3a162decb6f2327fec95764e2 (diff)
Merge pull request #22929 from Windfisch/oa_hashmap_test
Fix bug and add testcase for OAHashMap losing keys
Diffstat (limited to 'core')
-rw-r--r--core/oa_hash_map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/oa_hash_map.h b/core/oa_hash_map.h
index 3705762d6c..9840442519 100644
--- a/core/oa_hash_map.h
+++ b/core/oa_hash_map.h
@@ -125,7 +125,7 @@ private:
while (42) {
if (hashes[pos] == EMPTY_HASH) {
- _construct(pos, hash, p_key, p_value);
+ _construct(pos, hash, key, value);
return;
}
@@ -136,7 +136,7 @@ private:
if (hashes[pos] & DELETED_HASH_BIT) {
// we found a place where we can fit in!
- _construct(pos, hash, p_key, p_value);
+ _construct(pos, hash, key, value);
return;
}