diff options
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 984b582..303dead 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 *); |