Skip to content

Commit

Permalink
Fix parseMacroArgs corner case (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
coco875 authored May 7, 2024
1 parent d425992 commit 4589b8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fast64_internal/f3d/f3d_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2204,13 +2204,11 @@ def parseMacroList(data: str):


def parseMacroArgs(data: str):
end = 0
start = 0
params: "list[str]" = []
parenthesesCount = 0

while end < len(data) - 1:
end += 1
for end in range(len(data)):
if data[end] == "(":
parenthesesCount += 1
elif data[end] == ")":
Expand Down

0 comments on commit 4589b8b

Please sign in to comment.