Merge pull request #45 from TheBlueMatt/master

Fix argument to copy_nonoverlapping in internal_macros
This commit is contained in:
Andrew Poelstra 2018-02-14 16:23:53 +00:00 committed by GitHub
commit deda031975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ macro_rules! impl_array_newtype {
let mut ret: $thing = mem::uninitialized();
copy_nonoverlapping(data.as_ptr(),
ret.as_mut_ptr(),
mem::size_of::<$thing>());
$len);
ret
}
}