diff options
author | da-woods <dw-git@d-woods.co.uk> | 2021-10-18 19:36:54 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2021-10-18 20:37:42 +0200 |
commit | fb5d29e2e0de76becf6e60858d62a9928714014c (patch) | |
tree | 3d1e19a959268badfca3a87dc318d97a87f0f569 | |
parent | cbddad23e30ea6d31e0178a4c623f1f6d75452c3 (diff) | |
download | cython-fb5d29e2e0de76becf6e60858d62a9928714014c.tar.gz |
Fix tracing after adapting it to Py3.11 (GH-4420)
-rw-r--r-- | Cython/Utility/Profile.c | 4 |
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) |