Fixing hashset and hashmap error with a pointer data type and adding a test to address that
This commit is contained in:
1 parent
f0b763afba
commit
d89972c621
4 files changed
+34
-5
No files matched your search
+4
-2
@@ -295,7 +295,8 @@ static const size_t cmc_hashtable_primes[] = {53, 97, 191, 383, 769, 1531,
|
||||
return false; \
|
||||
\
|
||||
SNAME##_iter iter; \
|
||||
K result_key, max_key; \
|
||||
K result_key; \
|
||||
K max_key; \
|
||||
V result_value; \
|
||||
size_t index; \
|
||||
\
|
||||
@@ -326,7 +327,8 @@ static const size_t cmc_hashtable_primes[] = {53, 97, 191, 383, 769, 1531,
|
||||
return false; \
|
||||
\
|
||||
SNAME##_iter iter; \
|
||||
K result_key, min_key; \
|
||||
K result_key; \
|
||||
K min_key; \
|
||||
V result_value; \
|
||||
size_t index; \
|
||||
\
|
||||
|
||||
+4
-2
@@ -289,7 +289,8 @@ static const size_t cmc_hashtable_primes[] = {53, 97, 191, 383, 769, 1531,
|
||||
if (PFX##_empty(_set_)) \
|
||||
return 0; \
|
||||
\
|
||||
V result, max; \
|
||||
V result; \
|
||||
V max; \
|
||||
size_t index; \
|
||||
SNAME##_iter iter; \
|
||||
\
|
||||
@@ -311,7 +312,8 @@ static const size_t cmc_hashtable_primes[] = {53, 97, 191, 383, 769, 1531,
|
||||
if (PFX##_empty(_set_)) \
|
||||
return 0; \
|
||||
\
|
||||
V result, min; \
|
||||
V result; \
|
||||
V min; \
|
||||
size_t index; \
|
||||
SNAME##_iter iter; \
|
||||
\
|
||||
|
||||
Reference in new issue
Block a user