From 4a27d2aac673751142b16ab78434c6978311e706 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 19 Aug 2022 16:25:09 -0700 Subject: [PATCH] std.os.linux.bpf: fix compile error --- lib/std/os/linux/bpf.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/linux/bpf.zig b/lib/std/os/linux/bpf.zig index 4cb9dbf5c5..147bf610d8 100644 --- a/lib/std/os/linux/bpf.zig +++ b/lib/std/os/linux/bpf.zig @@ -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, };