From 017cb2c7d85fa4a07365a9a205aca21bc29d01a8 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 30 Aug 2001 20:07:55 +0000 Subject: [PATCH] Squash new compiler wng. --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 984b5829ba0..303deadeadb 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -864,7 +864,7 @@ type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds) else { if (add_dict) { if (base->tp_itemsize) - type->tp_dictoffset = -sizeof(PyObject *); + type->tp_dictoffset = -(long)sizeof(PyObject *); else type->tp_dictoffset = slotoffset; slotoffset += sizeof(PyObject *);