mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
parent
56325d1412
commit
006bef71b5
5 changed files with 70 additions and 0 deletions
|
@ -2170,6 +2170,9 @@ bool record_promotion_compatible(const RecordType* super_rec, const RecordType*
|
|||
if ( same_type(sub_field_type, super_field_type) )
|
||||
continue;
|
||||
|
||||
if ( BothArithmetic(sub_field_type->Tag(), super_field_type->Tag()) )
|
||||
continue;
|
||||
|
||||
if ( sub_field_type->Tag() != TYPE_RECORD )
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue