std.os.sigprocmask: @bitCast flags parameter

This commit is contained in:
dweiller
2023-06-28 19:27:19 +10:00
committed by Andrew Kelley
parent 6bc9c4f716
commit a7707d8279

View File

@@ -5620,7 +5620,7 @@ pub fn sigaction(sig: u6, noalias act: ?*const Sigaction, noalias oact: ?*Sigact
/// Sets the thread signal mask.
pub fn sigprocmask(flags: u32, noalias set: ?*const sigset_t, noalias oldset: ?*sigset_t) void {
switch (errno(system.sigprocmask(flags, set, oldset))) {
switch (errno(system.sigprocmask(@bitCast(flags), set, oldset))) {
.SUCCESS => return,
.FAULT => unreachable,
.INVAL => unreachable,