mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Fix crash when printing type of recursive structures.
Also slightly fix indentation in Type.h
This commit is contained in:
parent
13c4489578
commit
c5a14d1bc1
6 changed files with 50 additions and 6 deletions
|
@ -182,6 +182,7 @@ public:
|
|||
CHECK_TYPE_TAG(TYPE_FUNC, "BroType::AsFuncType");
|
||||
return (const FuncType*) this;
|
||||
}
|
||||
|
||||
FuncType* AsFuncType()
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_FUNC, "BroType::AsFuncType");
|
||||
|
@ -201,7 +202,7 @@ public:
|
|||
}
|
||||
|
||||
const VectorType* AsVectorType() const
|
||||
{
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_VECTOR, "BroType::AsVectorType");
|
||||
return (VectorType*) this;
|
||||
}
|
||||
|
@ -219,19 +220,19 @@ public:
|
|||
}
|
||||
|
||||
VectorType* AsVectorType()
|
||||
{
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_VECTOR, "BroType::AsVectorType");
|
||||
return (VectorType*) this;
|
||||
}
|
||||
|
||||
const TypeType* AsTypeType() const
|
||||
{
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_TYPE, "BroType::AsTypeType");
|
||||
return (TypeType*) this;
|
||||
}
|
||||
|
||||
TypeType* AsTypeType()
|
||||
{
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_TYPE, "BroType::AsTypeType");
|
||||
return (TypeType*) this;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue