summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorda-woods <dw-git@d-woods.co.uk>2021-10-18 19:36:54 +0100
committerGitHub <noreply@github.com>2021-10-18 20:36:54 +0200
commit53b0eb23284e73d622adea1624e4ad50171a2880 (patch)
tree0e7b2a5539582facc3011d09220f23e9e4a859c2
parent5f820eda5d54c29922df704221bb3ec4c9f74c0d (diff)
downloadcython-53b0eb23284e73d622adea1624e4ad50171a2880.tar.gz
Fix tracing after adapting it to Py3.11 (GH-4420)
-rw-r--r--Cython/Utility/Profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Utility/Profile.c b/Cython/Utility/Profile.c
index fc49a5710..645ec9535 100644
--- a/Cython/Utility/Profile.c
+++ b/Cython/Utility/Profile.c
@@ -77,7 +77,7 @@
#define __Pyx_LeaveTracing(tstate) \
do { \
tstate->tracing--; \
- tstate->use_tracing = ((CYTHON_TRACE && tstate->c_tracefunc != NULL) \
+ tstate->cframe->use_tracing = ((CYTHON_TRACE && tstate->c_tracefunc != NULL) \
|| tstate->c_profilefunc != NULL); \
} while (0)
@@ -93,7 +93,7 @@
#define __Pyx_LeaveTracing(tstate) \
do { \
tstate->tracing--; \
- tstate->cframe->use_tracing = ((CYTHON_TRACE && tstate->c_tracefunc != NULL) \
+ tstate->use_tracing = ((CYTHON_TRACE && tstate->c_tracefunc != NULL) \
|| tstate->c_profilefunc != NULL); \
} while (0)