authorgravatar for danielchasehooper@gmail.comDaniel Hooper <danielchasehooper@gmail.com> 2024-11-12 21:27:02-08:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-11-13 05:27:02+00:00
log9996f8b9b17f7e04be64ac220c9bad743b45a2b7
tree2ba412322126f796e30dfc05040c73853d31c314
parentc59aee03c84efd344536dbfd6622cf87557bf66f
signaturebadge-check Signed by PGP key B5690EEEBB952194

Fix std.c.EXC.MASK struct to match definition in mach/exception_types.h (#21964)

Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>

1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/c/darwin.zig+2
......@@ -59,6 +59,7 @@ pub const EXC = enum(exception_type_t) {
5959 pub const SOFT_SIGNAL = 0x10003;
6060
6161 pub const MASK = packed struct(u32) {
62 _0: u1 = 0,
6263 BAD_ACCESS: bool = false,
6364 BAD_INSTRUCTION: bool = false,
6465 ARITHMETIC: bool = false,
......@@ -72,6 +73,7 @@ pub const EXC = enum(exception_type_t) {
7273 RESOURCE: bool = false,
7374 GUARD: bool = false,
7475 CORPSE_NOTIFY: bool = false,
76 _14: u18 = 0,
7577
7678 pub const MACHINE: MASK = @bitCast(@as(u32, 0));
7779