diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-04-21 23:48:11 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-04-21 23:48:11 (GMT) |
commit | 1a5856bf9295fa73995898d576e0bedf016aee1f (patch) | |
tree | 32c1f6c2ad33c8374bc5753f520e609339962fd2 /Objects | |
parent | a36e939aeb3b5a2c56561eb24f0e339eee9f3f9d (diff) | |
download | cpython-1a5856bf9295fa73995898d576e0bedf016aee1f.zip cpython-1a5856bf9295fa73995898d576e0bedf016aee1f.tar.gz cpython-1a5856bf9295fa73995898d576e0bedf016aee1f.tar.bz2 |
bpo-29867: Add asserts in PyTuple_GET_SIZE, PyList_GET_SIZE and PySet_GET_SIZE. (#751)
Diffstat (limited to 'Objects')
-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 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, |