mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix for EnumVal's returning their underlying value
Change EnumVal()->AsEnum() to zeek_int_t.
This commit is contained in:
parent
802d24cad7
commit
b7f7d32bf7
5 changed files with 14 additions and 10 deletions
|
@ -257,7 +257,7 @@ EnumTypePtr get_enum_type__CPP(const string& enum_type_name)
|
|||
return make_intrusive<EnumType>(enum_type_name);
|
||||
}
|
||||
|
||||
EnumValPtr make_enum__CPP(TypePtr t, int i)
|
||||
EnumValPtr make_enum__CPP(TypePtr t, zeek_int_t i)
|
||||
{
|
||||
auto et = cast_intrusive<EnumType>(move(t));
|
||||
return make_intrusive<EnumVal>(et, i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue