wire generator: reverse subtype struct order
nested subtypes need to come first in the struct declaration. we reverse the order that we read them off so that this requirement is met
This commit is contained in:
parent
0ce287d52e
commit
560f45cd7f
|
@ -1355,7 +1355,7 @@ def build_tlv_structs(tlv_fields):
|
|||
|
||||
def build_subtype_structs(subtypes):
|
||||
structs = ""
|
||||
for subtype in subtypes:
|
||||
for subtype in reversed(subtypes):
|
||||
structs += subtype.print_struct()
|
||||
return structs
|
||||
|
||||
|
|
Loading…
Reference in New Issue