mirror of https://github.com/python/cpython
Use NEWOBJ() macro instead of calling newobject() directly.
This commit is contained in:
parent
d99d283383
commit
6c02a2fe25
|
@ -40,7 +40,7 @@ newrangeobject(start, len, step, reps)
|
||||||
long start, len, step;
|
long start, len, step;
|
||||||
int reps;
|
int reps;
|
||||||
{
|
{
|
||||||
rangeobject *obj = (rangeobject *) newobject(&Rangetype);
|
rangeobject *obj = NEWOBJ(rangeobject, &Rangetype);
|
||||||
|
|
||||||
obj->start = start;
|
obj->start = start;
|
||||||
obj->len = len;
|
obj->len = len;
|
||||||
|
|
Loading…
Reference in New Issue