]> granicus.if.org Git - python/commitdiff
Use NEWOBJ() macro instead of calling newobject() directly.
authorGuido van Rossum <guido@python.org>
Mon, 22 Jul 1996 16:16:25 +0000 (16:16 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 22 Jul 1996 16:16:25 +0000 (16:16 +0000)
Objects/rangeobject.c

index dcb7a19828e96e96021b943bdcc8af434a9f8944..18fed0a31b52bd7046bcd7999994fba99e90cd50 100644 (file)
@@ -40,7 +40,7 @@ newrangeobject(start, len, step, reps)
        long start, len, step;
        int reps;
 {
-       rangeobject *obj = (rangeobject *) newobject(&Rangetype);
+       rangeobject *obj = NEWOBJ(rangeobject, &Rangetype);
 
        obj->start = start;
        obj->len   = len;