Skip to content

Commit

Permalink
Fix condition for including resize functions (#379)
Browse files Browse the repository at this point in the history
Bug introduced by #334.

Signed-off-by: Jacob Perron <[email protected]>
  • Loading branch information
jacobperron authored May 14, 2019
1 parent afbdedc commit 6f8194a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ for index, member in enumerate(message.structure.members):
# void *(void *, size_t) get_function
print(' %s, // get(index) function pointer' % ('get_function__%s' % function_suffix if function_suffix else 'nullptr'))
# void(void *, size_t) resize_function
print(' %s // resize(index) function pointer' % ('resize_function__%s' % function_suffix if function_suffix and isinstance(member.type.value_type, AbstractSequence) else 'NULL'))
print(' %s // resize(index) function pointer' % ('resize_function__%s' % function_suffix if function_suffix and isinstance(member.type, AbstractSequence) else 'NULL'))

if index < len(message.structure.members) - 1:
print(' },')
Expand Down

0 comments on commit 6f8194a

Please sign in to comment.