Fixing missing flag for treemap and treeset

This commit is contained in:
Leonardo committed 2020-04-16 20:29:49 -03:00
1 parent e1c736ab46
commit 277139656e
6 files changed
+18

No files matched your search

+3
View File
@@ -415,7 +415,10 @@ static const char *cmc_string_fmt_treemap = "struct %s<%s, %s> "
else if (_map_->f_key->cmp(scan->key, key) < 0) \
scan = scan->right; \
else \
{ \
_map_->flag = cmc_flags.DUPLICATE; \
return false; \
} \
} \
\
struct SNAME##_node *node; \
+3
View File
@@ -397,7 +397,10 @@ static const char *cmc_string_fmt_treeset = "struct %s<%s> "
else if (_set_->f_val->cmp(scan->value, element) < 0) \
scan = scan->right; \
else \
{ \
_set_->flag = cmc_flags.DUPLICATE; \
return false; \
} \
} \
\
struct SNAME##_node *node; \