Browse Source

subtypes: fixup context reference for subtypes

subtype children should be allocated off of themselves. this was
failing to compile for embedded subtypes (subtype within a subtype).
pr-2587
lisa neigut 6 years ago
committed by Rusty Russell
parent
commit
e31111d70b
  1. 2
      tools/generate-wire.py

2
tools/generate-wire.py

@ -958,7 +958,7 @@ class Subtype(Message):
name = '{}->{}'.format(self.name, f.name)
# Allocate these off the array itself, if they need alloc.
self.print_fromwire_array('*' + f.name, subcalls, basetype, f,
self.print_fromwire_array(name, subcalls, basetype, f,
name, f.lenvar, is_tlv=True)
else:
if f.is_assignable():

Loading…
Cancel
Save