summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/odictobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/odictobject.c b/Objects/odictobject.c
index c2cef21..771dcc3 100644
--- a/Objects/odictobject.c
+++ b/Objects/odictobject.c
@@ -1519,7 +1519,7 @@ odict_repr(PyODictObject *self)
count++;
}
if (count < PyList_GET_SIZE(pieces))
- PyList_GET_SIZE(pieces) = count;
+ Py_SIZE(pieces) = count;
}
else {
PyObject *items = _PyObject_CallMethodIdObjArgs((PyObject *)self,