mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
gh-99300: Replace Py_INCREF() with Py_NewRef() (#99530)
Replace Py_INCREF() and Py_XINCREF() using a cast with Py_NewRef() and Py_XNewRef().
This commit is contained in:
parent
19c1462e8d
commit
8211cf5d28
18 changed files with 40 additions and 74 deletions
|
@ -838,8 +838,7 @@ hamt_node_bitmap_assoc(PyHamtNode_Bitmap *self,
|
|||
|
||||
if (self->b_array[j] == NULL) {
|
||||
new_node->a_array[i] =
|
||||
(PyHamtNode *)self->b_array[j + 1];
|
||||
Py_INCREF(new_node->a_array[i]);
|
||||
(PyHamtNode *)Py_NewRef(self->b_array[j + 1]);
|
||||
}
|
||||
else {
|
||||
int32_t rehash = hamt_hash(self->b_array[j]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue