diff options
author | da-woods <dw-git@d-woods.co.uk> | 2021-10-18 19:36:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 20:36:54 +0200 |
commit | 53b0eb23284e73d622adea1624e4ad50171a2880 (patch) | |
tree | 0e7b2a5539582facc3011d09220f23e9e4a859c2 | |
parent | 5f820eda5d54c29922df704221bb3ec4c9f74c0d (diff) | |
download | cython-53b0eb23284e73d622adea1624e4ad50171a2880.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 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) |