Try replacing += syntax with explicit

This commit is contained in:
Nico Schottelius 2019-07-10 08:48:06 +02:00
parent ff383e3b08
commit c714b2748b

View file

@ -623,7 +623,7 @@ Echo or Echo Reply Message
action v4sum() { action v4sum() {
bit<16> localsum = 0; bit<16> localsum = 0;
localsum += hdr.ipv4.src[15:0]; // 16 bit localsum = localsum + hdr.ipv4.src[15:0]; // 16 bit
localsum += hdr.ipv4.src[31:16]; // 16 bit localsum += hdr.ipv4.src[31:16]; // 16 bit
localsum += hdr.ipv4.dst[15:0]; // 16 bit localsum += hdr.ipv4.dst[15:0]; // 16 bit
localsum += hdr.ipv4.dst[31:16]; // 16 bit localsum += hdr.ipv4.dst[31:16]; // 16 bit