We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd8d15c commit 59d4178Copy full SHA for 59d4178
src/shims/unix/fd.rs
@@ -445,7 +445,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
445
let mut bytes = vec![0; usize::try_from(count).unwrap()];
446
let result = match offset {
447
None => fd.borrow_mut().read(communicate, &mut bytes, this),
448
- Some(Ok(offset)) => {
+ Some(offset) => {
449
let Ok(offset) = u64::try_from(offset) else {
450
let einval = this.eval_libc("EINVAL");
451
this.set_last_error(einval)?;
0 commit comments