diff --git a/p4debug/bug2-cast-in-checksum/checksums.p4 b/p4debug/bug2-cast-in-checksum/checksums.p4 index 2a1e3f0..2d169e4 100644 --- a/p4debug/bug2-cast-in-checksum/checksums.p4 +++ b/p4debug/bug2-cast-in-checksum/checksums.p4 @@ -27,7 +27,7 @@ control MyComputeChecksum(inout headers hdr, inout metadata meta) { { hdr.ipv6.src_addr, /* 128 */ hdr.ipv6.dst_addr, /* 128 */ - meta.cast_length = (bit<32>) hdr.ipv6.payload_length; + (bit<32>) hdr.ipv6.payload_length, 24w0, /* 24 0's */ PROTO_ICMP6 /* 8 */ },