Skip to content

Commit 45593e8

Browse files
Fix warning in ensure_shared_on_resize
1 parent d416ac6 commit 45593e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/listobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ ensure_shared_on_resize(PyListObject *self)
7979
// We can't use _Py_CRITICAL_SECTION_ASSERT_OBJECT_LOCKED here because
8080
// the `CALL_LIST_APPEND` bytecode handler may lock the list without
8181
// a critical section.
82-
assert(_PyObject_IsUniquelyReferenced(self) || PyMutex_IsLocked(&_PyObject_CAST(self)->ob_mutex));
82+
assert(_PyObject_IsUniquelyReferenced((PyObject *)self) ||
83+
PyMutex_IsLocked(&_PyObject_CAST(self)->ob_mutex));
8384

8485
// Ensure that the list array is freed using QSBR if we are not the
8586
// owning thread.

0 commit comments

Comments
 (0)