summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 d22c2793c..428cb1db4 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)