]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Enabled (and fixed) newvarobject()
authorGuido van Rossum <guido@python.org>
Sun, 5 May 1991 20:10:41 +0000 (20:10 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 5 May 1991 20:10:41 +0000 (20:10 +0000)
Objects/object.c

index c54bf5c951389bf90d9099e05d508bca6f8bbc8e..2b5b8918490dc99e66de5fd94d510faf59c7fae9 100644 (file)
@@ -46,8 +46,6 @@ newobject(tp)
        return op;
 }
 
-#if 0 /* unused */
-
 varobject *
 newvarobject(tp, size)
        typeobject *tp;
@@ -56,15 +54,13 @@ newvarobject(tp, size)
        varobject *op = (varobject *)
                malloc(tp->tp_basicsize + size * tp->tp_itemsize);
        if (op == NULL)
-               return err_nomem();
+               return (varobject *)err_nomem();
        NEWREF(op);
        op->ob_type = tp;
        op->ob_size = size;
        return op;
 }
 
-#endif
-
 int StopPrint; /* Flag to indicate printing must be stopped */
 
 static int prlevel;