mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Deprecate Val::Type(), replace with GetType()
This commit is contained in:
parent
737420c359
commit
1eb723fc9d
30 changed files with 270 additions and 255 deletions
|
@ -284,9 +284,9 @@ void TopkVal::Encountered(Val* encountered)
|
|||
// ok, let's see if we already know this one.
|
||||
|
||||
if ( numElements == 0 )
|
||||
Typify(encountered->Type());
|
||||
Typify(encountered->GetType().get());
|
||||
else
|
||||
if ( ! same_type(type, encountered->Type()) )
|
||||
if ( ! same_type(type, encountered->GetType().get()) )
|
||||
{
|
||||
reporter->Error("Trying to add element to topk with differing type from other elements");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue