mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Merge remote-tracking branch 'origin/topic/johanna/1095-just-get-rid-of-it'
* origin/topic/johanna/1095-just-get-rid-of-it: Re-add TYPE_COUNTER without function and deprecation marker. Completely remove all traces of the COUNTER type.
This commit is contained in:
commit
22b401f52f
26 changed files with 24 additions and 69 deletions
|
@ -517,10 +517,6 @@ static void BuildJSON(threading::formatter::JSON::NullDoubleWriter& writer, Val*
|
|||
writer.Uint64(val->AsCount());
|
||||
break;
|
||||
|
||||
case TYPE_COUNTER:
|
||||
writer.Uint64(val->AsCounter());
|
||||
break;
|
||||
|
||||
case TYPE_TIME:
|
||||
writer.Double(val->AsTime());
|
||||
break;
|
||||
|
@ -3449,7 +3445,7 @@ ValPtr check_and_promote(ValPtr v,
|
|||
t->Error("overflow promoting from signed/double to unsigned arithmetic value", v.get(), false, expr_location);
|
||||
return nullptr;
|
||||
}
|
||||
else if ( t_tag == TYPE_COUNT || t_tag == TYPE_COUNTER )
|
||||
else if ( t_tag == TYPE_COUNT )
|
||||
promoted_v = zeek::val_mgr->Count(v->CoerceToUnsigned());
|
||||
else // port
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue