Skip to content

Commit

Permalink
fix Windows stdout/stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 18, 2018
1 parent 7614b2a commit e8682aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fn_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ pub trait EvalContextExt<'a, 'mir, 'tcx: 'a+'mir>: crate::MiriEvalContextExt<'a,
this.write_scalar(handle, dest)?;
}
"WriteFile" => {
let handle = this.read_scalar(args[0])?.to_i32()?;
let handle = this.read_scalar(args[0])?.to_isize()?;
let buf = this.read_scalar(args[1])?.not_undef()?;
let n = this.read_scalar(args[2])?.to_usize(&*this.tcx)?;
let written_place = this.deref_operand(args[3])?;
Expand Down

0 comments on commit e8682aa

Please sign in to comment.