From: Matt Corallo Date: Thu, 8 Oct 2020 23:36:51 +0000 (-0400) Subject: Update demo.cpp for new tuple code X-Git-Tag: v0.0.12~7^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=7e18104414a30b9d527f604d360a18b4a93d344f;p=rust-lightning Update demo.cpp for new tuple code --- diff --git a/lightning-c-bindings/demo.cpp b/lightning-c-bindings/demo.cpp index acb73a4de..ee1cedf17 100644 --- a/lightning-c-bindings/demo.cpp +++ b/lightning-c-bindings/demo.cpp @@ -550,9 +550,7 @@ int main() { LDKSecretKey sk; memset(&sk, 42, 32); LDKC2Tuple_u64u64Z kdiv_params; - kdiv_params.a = (uint64_t*) malloc(8); - kdiv_params.b = (uint64_t*) malloc(8); - *kdiv_params.a = 42; - *kdiv_params.b = 42; + kdiv_params.a = 42; + kdiv_params.b = 42; LDK::InMemoryChannelKeys keys = InMemoryChannelKeys_new(sk, sk, sk, sk, sk, random_bytes, 42, kdiv_params); }