Fixing missing flag for treemap and treeset
This commit is contained in:
1 parent
e1c736ab46
commit
277139656e
6 files changed
+18
No files matched your search
@@ -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; \
|
||||
|
||||
@@ -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; \
|
||||
|
||||
Reference in new issue
Block a user