aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/import.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-02-07 12:38:34 +0000
committerGitHub <noreply@github.com>2024-02-07 12:38:34 +0000
commit8a3c499ffe7e15297dd4c0b446a0b97b4d32108a (patch)
tree33db486003306c8b0bee15012680642391963977 /Python/import.c
parentd0322fdf2c1a7292a43959fe5a572d783b88a1c4 (diff)
downloadcpython-8a3c499ffe7e15297dd4c0b446a0b97b4d32108a.tar.gz
cpython-8a3c499ffe7e15297dd4c0b446a0b97b4d32108a.zip
GH-108362: Revert "GH-108362: Incremental GC implementation (GH-108038)" (#115132)
Revert "GH-108362: Incremental GC implementation (GH-108038)" This reverts commit 36518e69d74607e5f094ce55286188e4545a947d.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index dfc5ec1f2f2..2fd0c08a6bb 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -1030,7 +1030,7 @@ _extensions_cache_set(PyObject *filename, PyObject *name, PyModuleDef *def)
if (!already_set) {
/* We assume that all module defs are statically allocated
and will never be freed. Otherwise, we would incref here. */
- _Py_SetImmortal((PyObject *)def);
+ _Py_SetImmortal(def);
}
res = 0;