summaryrefslogtreecommitdiffstats
path: root/Objects/memoryobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/memoryobject.c')
-rw-r--r--Objects/memoryobject.c2
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;