std.os.linux.bpf: fix compile error

This commit is contained in:
Andrew Kelley 2022-08-19 16:25:09 -07:00
parent a85f41ec2c
commit 4a27d2aac6

View File

@ -458,7 +458,7 @@ pub const Insn = packed struct {
else
ImmOrReg{ .imm = src };
const src_type = switch (imm_or_reg) {
const src_type: u8 = switch (imm_or_reg) {
.imm => K,
.reg => X,
};