Commit b563e8f7 authored by John Hodge's avatar John Hodge

Rename min_align_of to align_of

parent 88059d9a
......@@ -17,7 +17,7 @@ impl VaList
// Read a raw value from the list
unsafe fn get_raw<T: 'static>(&mut self) -> T {
assert_eq!(self.0 as usize % mem::min_align_of::<T>(), 0);
assert_eq!(self.0 as usize % mem::align_of::<T>(), 0);
let rv = ptr::read(self.0 as *const T);
self.0 = self.0.offset( mem::size_of::<T>() as isize );
rv
......
......@@ -52,7 +52,7 @@ impl VaListInner
rv
}
unsafe fn get_overflow<T>(&mut self) -> T {
let align = mem::min_align_of::<T>();
let align = mem::align_of::<T>();
// 7. Align overflow_reg_area upwards to a 16-byte boundary if alignment
// needed by T exceeds 8 bytes
let addr = self.overflow_arg_area as usize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment