Skip to content

Commit 9f6f374

Browse files
x86_64-linux-gnu waitstatus.h casts the results to a signed char
1 parent 2d86489 commit 9f6f374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/notbsd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ f! {
685685
}
686686

687687
pub fn WIFSIGNALED(status: ::c_int) -> bool {
688-
(status & 0x7f) + 1 >= 2
688+
((status & 0x7f) + 1) as i8 >= 2
689689
}
690690

691691
pub fn WTERMSIG(status: ::c_int) -> ::c_int {

0 commit comments

Comments
 (0)