[Bro] bad record initializer (between Bro 2.3 and 2.4)

Daniel Thayer dnthayer at illinois.edu
Mon Nov 14 14:19:54 PST 2016


On 11/14/16 3:08 PM, Seth Hall wrote:
>
>> On Nov 14, 2016, at 11:30 AM, Mike Dopheide <dopheide at gmail.com> wrote:
>>
>> That works, and int works if I prepend a + to the number.
>
> That makes sense.  The typecasting has some trouble promoting numbers assigned that way sometimes.  If you create a minimal test case that fails in a way that you think it should work, it would help to have a ticket filed.
>
> Thanks!
>   .Seth

Here is a minimal test that works, but if you remove the "+" sign, then 
it fails:

type myrecord: record {
     ii: int;
};

# The "+" sign is required here:
global rr1 = myrecord($ii = +3);

# But "+" is not required here:
global rr2: myrecord;
rr2$ii = 3;

print rr1;
print rr2;


More information about the Bro mailing list