summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-02-02 21:10:53 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-02-02 21:10:53 (GMT)
commit231e22facb565ccd2fd68cf7a9544eb6435c8b0d (patch)
treefe43566c86c2708b126b6ca5016bfcbbf44ca90e /Modules
parentb1cbc1e36b1b9010c25a0c4a2177f25abba1c6e6 (diff)
downloadcpython-231e22facb565ccd2fd68cf7a9544eb6435c8b0d.zip
cpython-231e22facb565ccd2fd68cf7a9544eb6435c8b0d.tar.gz
cpython-231e22facb565ccd2fd68cf7a9544eb6435c8b0d.tar.bz2
Repair legit compiler warning.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_weakref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_weakref.c b/Modules/_weakref.c
index dcbcb6b..26750da 100644
--- a/Modules/_weakref.c
+++ b/Modules/_weakref.c
@@ -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);