diff --git a/Cargo.toml b/Cargo.toml index de6f874..8e960f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "secp256k1" -version = "0.8.1" +version = "0.8.2" authors = [ "Dawid Ciężarkiewicz ", "Andrew Poelstra " ] license = "CC0-1.0" diff --git a/src/macros.rs b/src/macros.rs index 92eccbf..4318ae0 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -60,7 +60,7 @@ macro_rules! impl_array_newtype { let mut ret: $thing = mem::uninitialized(); copy_nonoverlapping(self.as_ptr(), ret.as_mut_ptr(), - mem::size_of::<$thing>()); + $len); ret } }