mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
fix argument order on check_align
This commit is contained in:
@@ -410,7 +410,7 @@ pub(super) fn call_intrinsic(
|
||||
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)?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user