Skip to content

Commit

Permalink
Fix stupid typo
Browse files Browse the repository at this point in the history
  • Loading branch information
madafoo committed Dec 7, 2015
1 parent ce1b70c commit b23e4d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/Map.h
Expand Up @@ -105,7 +105,7 @@ static inline int Map_FUNCTION(indexForKey)(Map_KEY_TYPE* key, struct Map_CONTEX
uint32_t hash = (Map_FUNCTION(hash)(key));
uint32_t i = hash % mask;
last = i;
step = Map_FUNCTION(hash2)(hash);
step = Map_FUNCTION(hash2)(i);
while (map->hashIndexes[i] != UINT32_MAX &&
Map_FUNCTION(compare)(key,
&map->keys[map->hashIndexes[i]]) != 0) {
Expand Down Expand Up @@ -273,7 +273,7 @@ static inline int Map_FUNCTION(put)(Map_VALUE_TYPE* value,
if (map->hashIndexes[k] == UINT32_MAX) {
index = k;
} else {
step = Map_FUNCTION(hash2)(hash);
step = Map_FUNCTION(hash2)(k);
while (map->hashIndexes[k] != UINT32_MAX &&
Map_FUNCTION(compare)(key,
&map->keys[map->hashIndexes[k]]) != 0) {
Expand Down

0 comments on commit b23e4d9

Please sign in to comment.