Skip to content

Commit 9872ba2

Browse files
committed
fix: forgot to define a variable for all cases, whoops
1 parent 2e9ad0a commit 9872ba2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

libdestruct/c/struct_parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def definition_to_type(definition: str) -> type[obj]:
3030
force_more_tops = True
3131
elif "typedef" in definition:
3232
force_more_tops = True
33+
else:
34+
force_more_tops = False
3335

3436
try:
3537
ast = parser.parse(definition)

0 commit comments

Comments
 (0)