mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
tlv: fixup deref for embedded structs on fromwire
This commit is contained in:
parent
37d6545191
commit
48078f7572
@ -864,7 +864,7 @@ struct {struct_name} {{
|
|||||||
s = '{}->{} = fromwire_{}(cursor, plen);'.format(
|
s = '{}->{} = fromwire_{}(cursor, plen);'.format(
|
||||||
self.name, f.name, basetype)
|
self.name, f.name, basetype)
|
||||||
else:
|
else:
|
||||||
s = 'fromwire_{}(cursor, plen, *{}->{});'.format(
|
s = 'fromwire_{}(cursor, plen, &{}->{});'.format(
|
||||||
basetype, self.name, f.name)
|
basetype, self.name, f.name)
|
||||||
subcalls.append(s)
|
subcalls.append(s)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user