mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +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
|
@ -84,7 +84,7 @@ extern EnumTypePtr get_enum_type__CPP(const std::string& enum_type_name);
|
|||
|
||||
// Returns an enum value corresponding to the given low-level value 'i'
|
||||
// in the context of the given enum type 't'.
|
||||
extern EnumValPtr make_enum__CPP(TypePtr t, int i);
|
||||
extern EnumValPtr make_enum__CPP(TypePtr t, zeek_int_t i);
|
||||
|
||||
} // namespace zeek::detail
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue