We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cb643f commit 770b2c3Copy full SHA for 770b2c3
std/src/sys/unix/process/process_common.rs
@@ -60,7 +60,7 @@ cfg_if::cfg_if! {
60
);
61
62
let bit = (signum - 1) as usize;
63
- if set.is_null() || bit < 0 || bit >= (8 * size_of::<sigset_t>()) {
+ if set.is_null() || bit >= (8 * size_of::<sigset_t>()) {
64
crate::sys::unix::os::set_errno(libc::EINVAL);
65
return -1;
66
}
0 commit comments