mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 11:08:20 +00:00
GH-219: revert previous change to |x| operator for interval/time
The result of the |x| operator for interval and time types historically
returned a value of type double. This was changed as part of
3256ac7c49
to return interval/time, but
this now reverts to returning a double again to avoid introducing a
change that may break user code.
Fixes GH-219
This commit is contained in:
parent
8b9d525097
commit
628a46d8fd
6 changed files with 11 additions and 7 deletions
|
@ -425,7 +425,7 @@ Val* Val::SizeVal() const
|
|||
return val_mgr->GetCount(val.uint_val);
|
||||
|
||||
case TYPE_INTERNAL_DOUBLE:
|
||||
return new Val(fabs(val.double_val), type->Tag());
|
||||
return new Val(fabs(val.double_val), TYPE_DOUBLE);
|
||||
|
||||
case TYPE_INTERNAL_OTHER:
|
||||
if ( type->Tag() == TYPE_FUNC )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue