fixes for initializing scripts compiled to C++

This commit is contained in:
Vern Paxson 2022-09-29 15:09:37 -07:00
parent 1af905a14f
commit 5c21240daf
3 changed files with 8 additions and 2 deletions

View file

@ -917,7 +917,10 @@ p_hash_type ProfileFuncs::HashAttrs(const AttributesPtr& Attrs)
// can vary in structure due to compilation of elements. We
// do though enforce consistency for their types.
if ( e )
{
h = merge_p_hashes(h, HashType(e->GetType()));
h = merge_p_hashes(h, p_hash(e.get()));
}
}
return h;