diff options
author | Guido van Rossum <guido@python.org> | 2000-01-20 22:32:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-01-20 22:32:56 (GMT) |
commit | bffd683f7356d92d4504b2bcaa7221fab3f52f4e (patch) | |
tree | fb68ae112139013c715e82c4b03678feab52ab21 /Objects/object.c | |
parent | e0a928dc1ec74f487471d102ae6efacc92055aa6 (diff) | |
download | cpython-bffd683f7356d92d4504b2bcaa7221fab3f52f4e.zip cpython-bffd683f7356d92d4504b2bcaa7221fab3f52f4e.tar.gz cpython-bffd683f7356d92d4504b2bcaa7221fab3f52f4e.tar.bz2 |
The rest of the changes by Trent Mick and Dale Nagata for warning-free
compilation on NT Alpha. Mostly added casts etc.
Diffstat (limited to 'Objects/object.c')
-rw-r--r-- | Objects/object.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c index ee9c271..69ad23d 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -34,7 +34,7 @@ PERFORMANCE OF THIS SOFTWARE. #include "Python.h" #if defined( Py_TRACE_REFS ) || defined( Py_REF_DEBUG ) -long _Py_RefTotal; +DL_IMPORT(long) _Py_RefTotal; #endif /* Object allocation routines used by NEWOBJ and NEWVAROBJ macros. @@ -149,7 +149,7 @@ _PyObject_NewVar(tp, size, op) return (PyVarObject *)PyErr_NoMemory(); op->ob_type = tp; op->ob_size = size; - _Py_NewReference(op); + _Py_NewReference((PyObject *)op); return op; } @@ -651,7 +651,9 @@ void _Py_ForgetReference(op) register PyObject *op; { +#ifdef SLOW_UNREF_CHECK register PyObject *p; +#endif if (op->ob_refcnt < 0) Py_FatalError("UNREF negative refcnt"); if (op == &refchain || |