From 614d9ebf6b8c8b068606ec77dfce16e61592e110 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 4 Nov 2024 13:52:28 -0500 Subject: [PATCH] [cffLib.specializer] Minor refactor --- Lib/fontTools/cffLib/specializer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/fontTools/cffLib/specializer.py b/Lib/fontTools/cffLib/specializer.py index fe6873e77..87da279af 100644 --- a/Lib/fontTools/cffLib/specializer.py +++ b/Lib/fontTools/cffLib/specializer.py @@ -446,9 +446,9 @@ def _convertToBlendCmds(args): i = 0 while i < num_args: arg = args[i] + i += 1 if not isinstance(arg, list): new_args.append(arg) - i += 1 stack_use += 1 else: prev_stack_use = stack_use @@ -458,7 +458,6 @@ def _convertToBlendCmds(args): # up to the max stack limit. num_sources = len(arg) - 1 blendlist = [arg] - i += 1 stack_use += 1 + num_sources # 1 for the num_blends arg while (i < num_args) and isinstance(args[i], list): blendlist.append(args[i])