Fix any_of() return

This commit is contained in:
Cary R 2025-11-23 01:57:31 -08:00
parent d87dbb08cf
commit 4f31fec5c8
1 changed files with 2 additions and 3 deletions

View File

@ -382,12 +382,11 @@ PEIdent::~PEIdent()
static bool find_enum_constant(LexicalScope*scope, perm_string name)
{
std::any_of(scope->enum_sets.cbegin(), scope->enum_sets.cend(),
[name](const enum_type_t *cur) {
return std::any_of(scope->enum_sets.cbegin(), scope->enum_sets.cend(),
[name](const enum_type_t *cur) {
return std::any_of(cur->names->cbegin(), cur->names->cend(),
[name](const named_pexpr_t idx){return idx.name == name;});
});
return false;
}
void PEIdent::declare_implicit_nets(LexicalScope*scope, NetNet::Type type)