Skip to content

Commit 6cd3ce1

Browse files
committed
Fix linux_raw
1 parent ca2e69c commit 6cd3ce1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backends/linux_raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pub fn fill_inner(mut dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
128128
}
129129
Err(_) if ret == EINTR => continue,
130130
Err(_) => {
131-
let code = i32::try_from(code).map_err(|_| Error::UNEXPECTED)?;
131+
let code = i32::try_from(ret).map_err(|_| Error::UNEXPECTED)?;
132132
return Err(Error::from_os_error(ret));
133133
}
134134
}

0 commit comments

Comments
 (0)