We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08b70ed commit 094b1daCopy full SHA for 094b1da
library/std/src/sys/unix/fd.rs
@@ -68,7 +68,7 @@ const fn max_iov() -> usize {
68
69
impl FileDesc {
70
pub fn new(fd: c_int) -> FileDesc {
71
- assert_ne!(fd, -1);
+ assert_ne!(fd, -1i32);
72
// SAFETY: we just asserted that the value is in the valid range and isn't `-1` (the only value bigger than `0xFF_FF_FF_FE` unsigned)
73
unsafe { FileDesc { fd } }
74
}
0 commit comments