mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Really, they both should be count. But, they were getting provided as an integer. Port is easy since it is backed by an unsigned value. Enums *should* be unsigned, but aren't. This doesn't address that, it just takes the other name for this operator (absolute value) and makes the enum value positive if it's negative. This fixes a case where using the size of operator on enum/port values in certain contexts (like the default parameter of a struct) would cause an internal error.
22 lines
573 B
Text
22 lines
573 B
Text
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
|
IPv4 Address 1.2.3.4: 32
|
|
IPv6 Address ::1: 128
|
|
Boolean T: 1
|
|
Count 10: 10
|
|
Expr: 18446744073709551612
|
|
Signed Expr: 4
|
|
Double -1.23: 1.230000
|
|
Enum ENUM3: 2
|
|
Enum in record: 2 2
|
|
File 21.000000
|
|
Function add_interface: 2
|
|
Integer -10: 10
|
|
Interval -5.0 secs: 5.000000
|
|
Port 80/tcp: 65616
|
|
Port in record: 65616 65616
|
|
Record [i=10, j=<uninitialized>, k=<uninitialized>]: 3
|
|
Set: 3
|
|
String 'Hello': 5
|
|
Subnet 192.168.0.0/24: 256.000000
|
|
Table 2
|
|
Vector [Hello, , , , World]: 5
|