diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-21 06:53:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 06:53:25 (GMT) |
commit | fff9a31a91283c39c363af219e595eab7d4da6f7 (patch) | |
tree | 0dfdec9e4e3e7caec6804bcc1fef1f2c19b9e532 /Objects/memoryobject.c | |
parent | c61ac1642d19f54c7b755098230967ad2e603180 (diff) | |
download | cpython-fff9a31a91283c39c363af219e595eab7d4da6f7.zip cpython-fff9a31a91283c39c363af219e595eab7d4da6f7.tar.gz cpython-fff9a31a91283c39c363af219e595eab7d4da6f7.tar.bz2 |
bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. (#748)
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r-- | Objects/memoryobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index b1798a2..8a23163 100644 --- a/Objects/memoryobject.c +++ b/Objects/memoryobject.c @@ -2143,7 +2143,7 @@ memory_hex(PyMemoryViewObject *self, PyObject *dummy) if (bytes == NULL) return NULL; - ret = _Py_strhex(PyBytes_AS_STRING(bytes), Py_SIZE(bytes)); + ret = _Py_strhex(PyBytes_AS_STRING(bytes), PyBytes_GET_SIZE(bytes)); Py_DECREF(bytes); return ret; |