Skip to content

gh-99537: Use Py_SETREF() function in long C code#99655

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:setref_long
Nov 22, 2022
Merged

gh-99537: Use Py_SETREF() function in long C code#99655
vstinner merged 1 commit intopython:mainfrom
vstinner:setref_long

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Nov 21, 2022

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

Replace "Py_DECREF(var); var = new;" with "Py_SETREF(var, new);"
in longobject.c and _testcapi/long.c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants