diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-04-22 02:48:11 +0300 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-04-22 01:48:11 +0200 |
commit | 1a5856bf9295fa73995898d576e0bedf016aee1f (patch) | |
tree | 32c1f6c2ad33c8374bc5753f520e609339962fd2 /Objects/odictobject.c | |
parent | a36e939aeb3b5a2c56561eb24f0e339eee9f3f9d (diff) | |
download | cpython-git-1a5856bf9295fa73995898d576e0bedf016aee1f.tar.gz |
bpo-29867: Add asserts in PyTuple_GET_SIZE, PyList_GET_SIZE and PySet_GET_SIZE. (#751)
Diffstat (limited to 'Objects/odictobject.c')
-rw-r--r-- | Objects/odictobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/odictobject.c b/Objects/odictobject.c index c2cef21b49..771dcc308c 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, |