Skip to content

Commit 795e703

Browse files
kevmo314colesbury
andauthored
Update Python/pystate.c
Co-authored-by: Sam Gross <colesbury@gmail.com>
1 parent f5e46b5 commit 795e703

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/pystate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,8 +1814,8 @@ tstate_delete_common(PyThreadState *tstate, int release_gil)
18141814
// Flush the thread's local GC allocation count to the global count
18151815
// before the thread state is deleted, otherwise the count is lost.
18161816
_Py_atomic_add_int(&tstate->interp->gc.young.count,
1817-
(int)((_PyThreadStateImpl *)tstate)->gc.alloc_count);
1818-
((_PyThreadStateImpl *)tstate)->gc.alloc_count = 0;
1817+
(int)tstate_impl->gc.alloc_count);
1818+
tstate_impl->gc.alloc_count = 0;
18191819
#endif
18201820

18211821
#if _Py_TIER2

0 commit comments

Comments
 (0)