Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 05ab111

Browse files
committed
Enabled (and fixed) newvarobject()
1 parent edcc38a commit 05ab111

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Objects/object.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ newobject(tp)
4646
return op;
4747
}
4848

49-
#if 0 /* unused */
50-
5149
varobject *
5250
newvarobject(tp, size)
5351
typeobject *tp;
@@ -56,15 +54,13 @@ newvarobject(tp, size)
5654
varobject *op = (varobject *)
5755
malloc(tp->tp_basicsize + size * tp->tp_itemsize);
5856
if (op == NULL)
59-
return err_nomem();
57+
return (varobject *)err_nomem();
6058
NEWREF(op);
6159
op->ob_type = tp;
6260
op->ob_size = size;
6361
return op;
6462
}
6563

66-
#endif
67-
6864
int StopPrint; /* Flag to indicate printing must be stopped */
6965

7066
static int prlevel;

0 commit comments

Comments
 (0)