mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
script optimization fixes for "concretizing" vector-of-any's
This commit is contained in:
parent
fc12ac2b06
commit
bae87fb606
4 changed files with 78 additions and 29 deletions
|
@ -902,6 +902,9 @@ public:
|
|||
if ( coerce_type )
|
||||
v = v->AsRecordVal()->CoerceTo(coerce_type);
|
||||
|
||||
else if ( init_type->Tag() == TYPE_VECTOR )
|
||||
concretize_if_unspecified(cast_intrusive<VectorVal>(v), init_type->Yield());
|
||||
|
||||
return ZVal(v, init_type);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue