Commit a7707d8279

dweiller <4678790+dweiller@users.noreply.github.com>
2023-06-28 11:27:19
std.os.sigprocmask: @bitCast flags parameter
1 parent 6bc9c4f
Changed files (1)
lib
std
lib/std/os.zig
@@ -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,