summaryrefslogtreecommitdiffstats
path: root/Objects/rangeobject.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-22 15:33:15 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-22 15:33:15 (GMT)
commitdcc819a5c9e3cb60eba05a3c0b2547bc1fb28b80 (patch)
tree124d72d29df550ba35d3a4b6ba66232619c85ee1 /Objects/rangeobject.c
parenta1a9c51a3ef06614413f45d51e65588bcd0793f2 (diff)
downloadcpython-dcc819a5c9e3cb60eba05a3c0b2547bc1fb28b80.zip
cpython-dcc819a5c9e3cb60eba05a3c0b2547bc1fb28b80.tar.gz
cpython-dcc819a5c9e3cb60eba05a3c0b2547bc1fb28b80.tar.bz2
Use pymalloc if it's enabled.
Diffstat (limited to 'Objects/rangeobject.c')
-rw-r--r--Objects/rangeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index da791fa..fa7e660 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -60,7 +60,7 @@ PyObject *
PyRange_New(long start, long len, long step, int reps)
{
long totlen = -1;
- rangeobject *obj = PyObject_NEW(rangeobject, &PyRange_Type);
+ rangeobject *obj = PyMalloc_New(rangeobject, &PyRange_Type);
if (obj == NULL)
return NULL;
@@ -104,7 +104,7 @@ PyRange_New(long start, long len, long step, int reps)
static void
range_dealloc(rangeobject *r)
{
- PyObject_DEL(r);
+ PyMalloc_Del(r);
}
static PyObject *