Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 017cb2c

Browse files
committed
Squash new compiler wng.
1 parent caa9f43 commit 017cb2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ type_new(PyTypeObject *metatype, PyObject *args, PyObject *kwds)
864864
else {
865865
if (add_dict) {
866866
if (base->tp_itemsize)
867-
type->tp_dictoffset = -sizeof(PyObject *);
867+
type->tp_dictoffset = -(long)sizeof(PyObject *);
868868
else
869869
type->tp_dictoffset = slotoffset;
870870
slotoffset += sizeof(PyObject *);

0 commit comments

Comments
 (0)