Skip to content

Commit d0d772b

Browse files
committed
Fix the cast
1 parent e80b8b3 commit d0d772b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8546,7 +8546,7 @@ transfer_keys_and_values_lock_held(PyObject *res, PyObject *dict)
85468546
PyDictValues *values = old->ma_values;
85478547

85488548
// Clear the old dict keys and values, but do not decref them:
8549-
clear_common((PyDictObject *)dict);
8549+
clear_common(old);
85508550
set_keys(old, Py_EMPTY_KEYS);
85518551
set_values(old, NULL);
85528552
ASSERT_CONSISTENT(old);

0 commit comments

Comments
 (0)