summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testinternalcapi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/_testinternalcapi.c b/Modules/_testinternalcapi.c
index 02a061b..5724bd5 100644
--- a/Modules/_testinternalcapi.c
+++ b/Modules/_testinternalcapi.c
@@ -44,9 +44,7 @@ get_recursion_depth(PyObject *self, PyObject *Py_UNUSED(args))
{
PyThreadState *tstate = _PyThreadState_GET();
- /* subtract one to ignore the frame of the get_recursion_depth() call */
-
- return PyLong_FromLong(tstate->recursion_limit - tstate->recursion_remaining - 1);
+ return PyLong_FromLong(tstate->py_recursion_limit - tstate->py_recursion_remaining);
}