Commit 231e22fa authored by Tim Peters's avatar Tim Peters

Repair legit compiler warning.

parent b1cbc1e3
...@@ -34,7 +34,7 @@ new_weakref(void) ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment