mirror of
https://github.com/python/cpython.git
synced 2025-08-25 19:24:42 +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;
|
result = free_list;
|
||||||
free_list = result->wr_next;
|
free_list = result->wr_next;
|
||||||
result->ob_type = &PyWeakReference_Type;
|
result->ob_type = &PyWeakReference_Type;
|
||||||
_Py_NewReference(result);
|
_Py_NewReference((PyObject *)result);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
result = PyObject_NEW(PyWeakReference, &PyWeakReference_Type);
|
result = PyObject_NEW(PyWeakReference, &PyWeakReference_Type);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue