diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs index a1b28899b8b3d6d7577579431baf1175b5672293..eee6ca64c2ff5944321320a9daace889cd8253ea 100644 --- a/src/unix/notbsd/mod.rs +++ b/src/unix/notbsd/mod.rs @@ -685,7 +685,7 @@ f! { } pub fn WIFSIGNALED(status: ::c_int) -> bool { - (status & 0x7f) + 1 >= 2 + ((status & 0x7f) + 1) as i8 >= 2 } pub fn WTERMSIG(status: ::c_int) -> ::c_int {