mirror of
https://github.com/python/cpython.git
synced 2025-08-25 03:04:55 +00:00
Repair legit compiler warning.
This commit is contained in:
parent
b1cbc1e36b
commit
231e22facb
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ new_weakref(void)
|
|||
result = free_list;
|
||||
free_list = result->wr_next;
|
||||
result->ob_type = &PyWeakReference_Type;
|
||||
_Py_NewReference(result);
|
||||
_Py_NewReference((PyObject *)result);
|
||||
}
|
||||
else {
|
||||
result = PyObject_NEW(PyWeakReference, &PyWeakReference_Type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue