Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 231e22f

Browse files
committed
Repair legit compiler warning.
1 parent b1cbc1e commit 231e22f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_weakref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ new_weakref(void)
3434
result = free_list;
3535
free_list = result->wr_next;
3636
result->ob_type = &PyWeakReference_Type;
37-
_Py_NewReference(result);
37+
_Py_NewReference((PyObject *)result);
3838
}
3939
else {
4040
result = PyObject_NEW(PyWeakReference, &PyWeakReference_Type);

0 commit comments

Comments
 (0)