Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/generic_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ uint32_t fibHash(uint32_t hash, uint32_t shift);
uint32_t cell; \
old[i].hash = cell = fibHash(hashFn(old[i].key), map->shift); \
while(new[cell].active) { \
if(++cell > map->capacity) \
if(++cell >= map->capacity) \
cell = 0; \
} \
new[cell] = old[i]; \
Expand Down Expand Up @@ -168,4 +168,4 @@ uint32_t fibHash(uint32_t hash, uint32_t shift);
return true; \
}

#endif //GENERIC_MAP_GENERIC_MAP_H
#endif //GENERIC_MAP_GENERIC_MAP_H