From 4589b8b6ecc1b1e8612769545c75ab5325772e12 Mon Sep 17 00:00:00 2001 From: coco875 <59367621+coco875@users.noreply.github.com> Date: Tue, 7 May 2024 02:52:21 +0200 Subject: [PATCH] Fix `parseMacroArgs` corner case (#323) --- fast64_internal/f3d/f3d_parser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fast64_internal/f3d/f3d_parser.py b/fast64_internal/f3d/f3d_parser.py index fc8231488..71436fbc3 100644 --- a/fast64_internal/f3d/f3d_parser.py +++ b/fast64_internal/f3d/f3d_parser.py @@ -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] == ")":