Mercurial > cpython-lru_cache-weakref
diff Objects/classobject.c @ 11673:5e6e9e893acd legacy-trunk
The rest of the changes by Trent Mick and Dale Nagata for warning-free
compilation on NT Alpha. Mostly added casts etc.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 20 Jan 2000 22:32:56 +0000 |
| parents | dc9f1f964690 |
| children | 32c59e2889c4 |
line wrap: on
line diff
--- a/Objects/classobject.c Thu Jan 20 21:37:19 2000 +0000 +++ b/Objects/classobject.c Thu Jan 20 22:32:56 2000 +0000 @@ -504,7 +504,7 @@ /* much too complicated if Py_TRACE_REFS defined */ extern long _Py_RefTotal; inst->ob_type = &PyInstance_Type; - _Py_NewReference(inst); + _Py_NewReference((PyObject *)inst); _Py_RefTotal--; /* compensate for increment in NEWREF */ #ifdef COUNT_ALLOCS inst->ob_type->tp_alloc--; /* ditto */ @@ -556,7 +556,7 @@ #ifdef COUNT_ALLOCS inst->ob_type->tp_free--; /* compensate for increment in UNREF */ #endif - _Py_ForgetReference(inst); + _Py_ForgetReference((PyObject *)inst); inst->ob_type = NULL; #endif /* Py_TRACE_REFS */ Py_DECREF(inst->in_class); @@ -1431,7 +1431,7 @@ if (im != NULL) { free_list = (PyMethodObject *)(im->im_self); im->ob_type = &PyMethod_Type; - _Py_NewReference(im); + _Py_NewReference((PyObject *)im); } else { im = PyObject_NEW(PyMethodObject, &PyMethod_Type);
