diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2023-08-04 23:24:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 23:24:50 (GMT) |
commit | 05a824f294f1409f33e32f1799d5b413dcf24445 (patch) | |
tree | 173417047763313af6cc1a3c4c54f1d510d28d62 /Objects/tupleobject.c | |
parent | ec0a0d2bd9faa247d5b3208a8138e4399b2da890 (diff) | |
download | cpython-05a824f294f1409f33e32f1799d5b413dcf24445.zip cpython-05a824f294f1409f33e32f1799d5b413dcf24445.tar.gz cpython-05a824f294f1409f33e32f1799d5b413dcf24445.tar.bz2 |
GH-84436: Skip refcounting for known immortals (GH-107605)
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r-- | Objects/tupleobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index c3ff40f..b669a3d 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -62,7 +62,7 @@ tuple_alloc(Py_ssize_t size) static inline PyObject * tuple_get_empty(void) { - return Py_NewRef(&_Py_SINGLETON(tuple_empty)); + return (PyObject *)&_Py_SINGLETON(tuple_empty); } PyObject * |