Verified Commit e145ba3e authored by jD91mZM2's avatar jD91mZM2
Browse files

For some reason casting to signed byte

Also, optimization! `>> 1 > 0` could be turned into `>= 2`. Thanks, rust libc
parent d02a3937
......@@ -373,5 +373,5 @@ pub fn wifcontinued(status: usize) -> bool {
/// True if STATUS indicates termination by a signal.
#[inline(always)]
pub fn wifsignaled(status: usize) -> bool {
((status & 0x7f) + 1) >> 1 > 0
((status & 0x7f) + 1) as i8 >= 2
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment