diff options
Diffstat (limited to 'Python/hamt.c')
-rw-r--r-- | Python/hamt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/hamt.c b/Python/hamt.c index c4e47eb..8cb9464 100644 --- a/Python/hamt.c +++ b/Python/hamt.c @@ -1354,8 +1354,7 @@ hamt_node_collision_assoc(PyHamtNode_Collision *self, } /* Replace the old value with the new value for the our key. */ - Py_DECREF(new_node->c_array[val_idx]); - new_node->c_array[val_idx] = Py_NewRef(val); + Py_SETREF(new_node->c_array[val_idx], Py_NewRef(val)); return (PyHamtNode *)new_node; |