Skip to content

Commit 9d56597

Browse files
committed
Fix previous fs test error
1 parent 4fdc431 commit 9d56597

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shims/unix/fs.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ impl FileDescription for FileHandle {
4040
ecx: &mut MiriInterpCx<'tcx>,
4141
) -> InterpResult<'tcx> {
4242
assert!(communicate_allowed, "isolation should have prevented even opening a file");
43-
ecx.read_byte_helper(ptr, bytes.to_vec(), (&mut &self.file).read(bytes), dest)?;
43+
let result = (&mut &self.file).read(bytes);
44+
ecx.read_byte_helper(ptr, bytes.to_vec(), result, dest)?;
4445
Ok(())
4546
}
4647

0 commit comments

Comments
 (0)