Commit 4a27d2aac6

Andrew Kelley <andrew@ziglang.org>
2022-08-20 01:25:09
std.os.linux.bpf: fix compile error
1 parent a85f41e
Changed files (1)
lib
std
os
linux
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,
         };