diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-06-04 13:41:21 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2018-06-04 13:41:21 +0000 |
commit | 46ff21ee14e00b992b49562943274d62f2b5b456 (patch) | |
tree | 5d3bd74a8866956214ee217568f16058252c6e62 /sources/shiboken2/tests/samplebinding/bytearray_bufferprotocol.cpp | |
parent | 1e081edc4df56856470208443428a11b3cdfede3 (diff) | |
parent | 2ef6a7a4d4f26956c2747c097973deec85b1d484 (diff) |
Merge "Merge remote-tracking branch 'origin/5.11' into dev" into refs/staging/dev
Diffstat (limited to 'sources/shiboken2/tests/samplebinding/bytearray_bufferprotocol.cpp')
-rw-r--r-- | sources/shiboken2/tests/samplebinding/bytearray_bufferprotocol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/tests/samplebinding/bytearray_bufferprotocol.cpp b/sources/shiboken2/tests/samplebinding/bytearray_bufferprotocol.cpp index 8f01b4a0a..322387088 100644 --- a/sources/shiboken2/tests/samplebinding/bytearray_bufferprotocol.cpp +++ b/sources/shiboken2/tests/samplebinding/bytearray_bufferprotocol.cpp @@ -33,7 +33,7 @@ extern "C" { static Py_ssize_t SbkByteArray_segcountproc(PyObject* self, Py_ssize_t* lenp) { if (lenp) - *lenp = self->ob_type->tp_as_sequence->sq_length(self); + *lenp = Py_TYPE(self)->tp_as_sequence->sq_length(self); return 1; } static Py_ssize_t SbkByteArray_readbufferproc(PyObject* self, Py_ssize_t segment, void** ptrptr) |