Skip to content

Commit 3811b9b

Browse files
committed
fix: remove erroneous print and provide owner when inflating struct members
1 parent 6468aba commit 3811b9b

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

libdestruct/c/struct_parser.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ def definition_to_type(definition: str) -> type[obj]:
5858
name, definition = typedef_to_pair(decl)
5959
TYPEDEFS[name] = definition
6060

61-
print(TYPEDEFS)
62-
6361
return struct_to_type(root)
6462

6563

libdestruct/common/struct/struct_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _inflate_struct_attributes(
5757
field = getattr(reference_type, name)
5858
resolved_type = inflater.inflater_for((field, annotation), owner=(self, reference_type._type_impl))
5959
else:
60-
resolved_type = inflater.inflater_for(annotation)
60+
resolved_type = inflater.inflater_for(annotation, owner=(self, reference_type._type_impl))
6161

6262
result = resolved_type(resolver.relative_from_own(current_offset, 0))
6363
setattr(self, name, result)

0 commit comments

Comments
 (0)