Repair legit compiler warning.

This commit is contained in:
Tim Peters 2001-02-02 21:10:53 +00:00
parent b1cbc1e36b
commit 231e22facb
1 changed files with 1 additions and 1 deletions

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