Commits

Guido van Rossum  committed 65a68c5

make newvarobj's size arg signed

  • Participants
  • Parent commits 170b998
  • Branches legacy-trunk

Comments (0)

Files changed (2)

File Include/longintrepr.h

 
 struct _longobject {
 	PyObject_HEAD
-	int ob_size; /* XXX Hack! newvarobj() stores it as unsigned! */
+	int ob_size;
 	digit ob_digit[1];
 };
 

File Include/objimpl.h

 */
 
 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))