Commit 6b6e336e07
Changed files (1)
lib
std
Build
Step
lib/std/Build/Step/CheckObject.zig
@@ -2270,7 +2270,7 @@ const ElfDumper = struct {
try writer.print(" {s}", .{sym_bind});
}
- const sym_vis = @as(elf.STV, @enumFromInt(sym.st_other));
+ const sym_vis = @as(elf.STV, @enumFromInt(@as(u2, @truncate(sym.st_other))));
try writer.print(" {s}", .{@tagName(sym_vis)});
const sym_name = switch (sym.st_type()) {