Skip to content

Commit 00b172e

Browse files
committed
Revert "Set default size of array_t when no size is defined"
This reverts commit 54927f8. This breaks a bunch of unit tests, so setting the default value here is not expected
1 parent fda1b9f commit 00b172e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pygccxml/declarations/cpptypes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,10 +608,8 @@ class array_t(compound_t):
608608
"""represents C++ array type"""
609609
SIZE_UNKNOWN = -1
610610

611-
def __init__(self, base, size=None):
611+
def __init__(self, base, size):
612612
compound_t.__init__(self, base)
613-
if size is not None:
614-
size = self.SIZE_UNKNOWN
615613
self._size = size
616614

617615
@property

0 commit comments

Comments
 (0)