Fix redundant comparison
This commit is contained in:
parent
f506656876
commit
4ecf87619c
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ cfg_if::cfg_if! {
|
|||
);
|
||||
|
||||
let bit = (signum - 1) as usize;
|
||||
if set.is_null() || bit < 0 || bit >= (8 * size_of::<sigset_t>()) {
|
||||
if set.is_null() || bit >= (8 * size_of::<sigset_t>()) {
|
||||
crate::sys::unix::os::set_errno(libc::EINVAL);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue