Skip to content

Commit

Permalink
fix field_type_capacity
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
  • Loading branch information
InvincibleRMC committed Nov 23, 2024
1 parent ef90617 commit 486b95a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ def field_type_capacity(ftype: definition.AbstractType) -> int:
if isinstance(ftype, definition.AbstractNestedType):
if isinstance(ftype, definition.Array):
return ftype.size
elif isinstance(ftype, definition.BoundedSequence):
return ftype.maximum_size
return 0


Expand Down

0 comments on commit 486b95a

Please sign in to comment.