]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99537: Use Py_SETREF() function in longobject C code (#99655)
authorVictor Stinner <vstinner@python.org>
Tue, 22 Nov 2022 12:04:19 +0000 (13:04 +0100)
committerGitHub <noreply@github.com>
Tue, 22 Nov 2022 12:04:19 +0000 (13:04 +0100)
commit20d9749a0f9b9fa6946019f04a54b6287d16588e
treef1e586c82467e7a7dd7e94e24f694f5800c66229
parent1acdfec359fdf3db936168480be0f4157273c200
gh-99537: Use Py_SETREF() function in longobject C code (#99655)

Replace "Py_DECREF(var); var = new;" with "Py_SETREF(var, new);"
in longobject.c and _testcapi/long.c.
Modules/_testcapi/long.c
Objects/longobject.c