Skip to content

Commit

Permalink
Fix variable typo in generate-wire.py
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift authored and cdecker committed Feb 24, 2018
1 parent bb12c23 commit 160f9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/generate-wire.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def print_printwire_array(self, subcalls, basetype, f, num_elems):
subcalls.append('\t\t{} v;'.format(f.fieldtype.name))
if f.fieldtype.is_assignable():
subcalls.append('\t\tv = fromwire_{}(&cursor, plen);'
.format(name, basetype))
.format(f.fieldtype.name, basetype))
else:
# We don't handle this yet!
assert(basetype not in varlen_structs)
Expand Down

0 comments on commit 160f9b0

Please sign in to comment.