Skip to content

Commit 1d0cbd5

Browse files
authored
Update hash_set_m.h
Fixed incorrect address assignment
1 parent ff8292c commit 1d0cbd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/hash_set_m.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Fast hashtable (hash_set, hash_map) based on open addressing hashing for C++11 and up
66
//
77
// This version supports full size_t hashing (calculates hash of each elements after any reallocation/resize)
8-
// version 1.3.2
8+
// version 1.3.3
99
//
1010
// https://github.com/hordi/hash
1111
//
@@ -873,7 +873,7 @@ class hash_base
873873
if (!_capacity)
874874
_elements = reinterpret_cast<int8_t*>(&_size);
875875
if (!r._capacity)
876-
r._elements = reinterpret_cast<int8_t*>(r._size);
876+
r._elements = reinterpret_cast<int8_t*>(&r._size);
877877
}
878878

879879
#ifdef _MSC_VER

0 commit comments

Comments
 (0)