fix argument order on check_align
This commit is contained in:
parent
5c82b64ce6
commit
f0e2247f4d
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
|
|||
let size = self.type_size(ty)?.expect("write_bytes() type must be sized");
|
||||
let ptr = arg_vals[0].read_ptr(&self.memory)?;
|
||||
let count = self.value_to_primval(arg_vals[2], usize)?.to_u64()?;
|
||||
self.memory.check_align(ptr, size * count, ty_align)?;
|
||||
self.memory.check_align(ptr, ty_align, size * count)?;
|
||||
self.memory.write_repeat(ptr, val_byte, size * count)?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue