Merge pull request #45 from TheBlueMatt/master
Fix argument to copy_nonoverlapping in internal_macros
This commit is contained in:
commit
deda031975
|
@ -88,7 +88,7 @@ macro_rules! impl_array_newtype {
|
||||||
let mut ret: $thing = mem::uninitialized();
|
let mut ret: $thing = mem::uninitialized();
|
||||||
copy_nonoverlapping(data.as_ptr(),
|
copy_nonoverlapping(data.as_ptr(),
|
||||||
ret.as_mut_ptr(),
|
ret.as_mut_ptr(),
|
||||||
mem::size_of::<$thing>());
|
$len);
|
||||||
ret
|
ret
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue