mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Fixing problem with type list.
This commit is contained in:
parent
a41efd495d
commit
ae4066dcf8
1 changed files with 7 additions and 3 deletions
|
@ -5902,7 +5902,11 @@ function hll_cardinality_add%(elem: any, index: any%): bool
|
||||||
int status = 0;
|
int status = 0;
|
||||||
uint64_t a = 123456;
|
uint64_t a = 123456;
|
||||||
|
|
||||||
CompositeHash* hll_hash = new CompositeHash(new TypeList(elem->Type()));
|
TypeList* tl = new TypeList(elem->Type());
|
||||||
|
tl->Append(elem->Type());
|
||||||
|
CompositeHash* hll_hash = new CompositeHash(tl);
|
||||||
|
Unref(tl);
|
||||||
|
|
||||||
if( hll_counters.count(*s) > 0 )
|
if( hll_counters.count(*s) > 0 )
|
||||||
{
|
{
|
||||||
CardinalityCounter* h = hll_counters[*s];
|
CardinalityCounter* h = hll_counters[*s];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue