Skip to content

Commit e29a4cb

Browse files
committed
Fixup asdl_c.py
1 parent b64c83b commit e29a4cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Parser/asdl_c.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ class PartingShots(StaticVisitor):
13901390
}
13911391
state->recursion_limit = (recursion_limit < INT_MAX / COMPILER_STACK_FRAME_SCALE) ?
13921392
recursion_limit * COMPILER_STACK_FRAME_SCALE : recursion_limit;
1393-
int recursion_depth = tstate->recursion_limit - tstate->recursion_remaining;
1393+
int recursion_depth = C_RECURSION_LIMIT - tstate->c_recursion_remaining;
13941394
starting_recursion_depth = (recursion_depth < INT_MAX / COMPILER_STACK_FRAME_SCALE) ?
13951395
recursion_depth * COMPILER_STACK_FRAME_SCALE : recursion_depth;
13961396
state->recursion_depth = starting_recursion_depth;

0 commit comments

Comments
 (0)