0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00

Repair legit compiler warning.

This commit is contained in:
Tim Peters 2001-02-02 21:10:53 +00:00
parent b1cbc1e36b
commit 231e22facb

View File

@ -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);