Skip to content

Commit

Permalink
fix arm64 alignment issues in signal()
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanschneider committed Nov 12, 2022
1 parent 8103b11 commit 991a9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cstd.zig
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ export fn strerror(errnum: c_int) callconv(.C) [*:0]const u8 {
// --------------------------------------------------------------------------------
const SignalFn = switch (builtin.zig_backend) {
.stage1 => fn(c_int) callconv(.C) void,
else => *const fn(c_int) callconv(.C) void,
else => *align(1) const fn(c_int) callconv(.C) void,
};
export fn signal(sig: c_int, func: SignalFn) callconv(.C) ?SignalFn {
if (builtin.os.tag == .windows) {
Expand Down

0 comments on commit 991a9eb

Please sign in to comment.