mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 22:16:53 +00:00
Fix redundant comparison
This commit is contained in:
parent
f506656876
commit
4ecf87619c
@ -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…
Reference in New Issue
Block a user