]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
make newvarobj's size arg signed
authorGuido van Rossum <guido@python.org>
Fri, 10 Feb 1995 16:55:33 +0000 (16:55 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Feb 1995 16:55:33 +0000 (16:55 +0000)
Include/longintrepr.h
Include/objimpl.h

index a5b1b364ffd9c1ecd6b505f14bd1ce26146f8e3c..2a911c24c3616e067fc02add186f0feaaecac87e 100644 (file)
@@ -62,7 +62,7 @@ typedef long stwodigits; /* signed variant of twodigits */
 
 struct _longobject {
        PyObject_HEAD
-       int ob_size; /* XXX Hack! newvarobj() stores it as unsigned! */
+       int ob_size;
        digit ob_digit[1];
 };
 
index cb27c7c5e69cd94a8d9ff4554d1ac51ffb272b50..139e3377ae3ff0a7abd023398c70436ce403c755 100644 (file)
@@ -48,7 +48,7 @@ n * tp_itemsize.  This fills in the ob_size field as well.
 */
 
 extern PyObject *_PyObject_New Py_PROTO((PyTypeObject *));
-extern varobject *_PyObject_NewVar Py_PROTO((PyTypeObject *, unsigned int));
+extern varobject *_PyObject_NewVar Py_PROTO((PyTypeObject *, int));
 
 #define PyObject_NEW(type, typeobj) ((type *) _PyObject_New(typeobj))
 #define PyObject_NEW_VAR(type, typeobj, n) ((type *) _PyObject_NewVar(typeobj, n))