Skip to content

Commit e8682aa

Browse files
committed
fix Windows stdout/stderr
1 parent 7614b2a commit e8682aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fn_call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
615615
this.write_scalar(handle, dest)?;
616616
}
617617
"WriteFile" => {
618-
let handle = this.read_scalar(args[0])?.to_i32()?;
618+
let handle = this.read_scalar(args[0])?.to_isize()?;
619619
let buf = this.read_scalar(args[1])?.not_undef()?;
620620
let n = this.read_scalar(args[2])?.to_usize(&*this.tcx)?;
621621
let written_place = this.deref_operand(args[3])?;

0 commit comments

Comments
 (0)