Skip to content

Commit 19c93f3

Browse files
committed
Cast 1st arg of all calls to _Py_ptr_wise_atomic_memmove to PyObject*
1 parent ca1d432 commit 19c93f3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Objects/listobject.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3770,12 +3770,14 @@ list_ass_subscript_lock_held(PyObject *_self, PyObject *item, PyObject *value)
37703770
lim = Py_SIZE(self) - cur - 1;
37713771
}
37723772

3773-
_Py_ptr_wise_atomic_memmove(self, self->ob_item + cur - i,
3773+
_Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(self);
3774+
_Py_ptr_wise_atomic_memmove((PyObject *)self, self->ob_item + cur - i,
37743775
self->ob_item + cur + 1, lim);
37753776
}
37763777
cur = start + (size_t)slicelength * step;
37773778
if (cur < (size_t)Py_SIZE(self)) {
3778-
_Py_ptr_wise_atomic_memmove(self, self->ob_item + cur - slicelength,
3779+
_Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED(self);
3780+
_Py_ptr_wise_atomic_memmove((PyObject *)self, self->ob_item + cur - slicelength,
37793781
self->ob_item + cur, Py_SIZE(self) - cur);
37803782
}
37813783

0 commit comments

Comments
 (0)