diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-04-11 09:35:33 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-04-11 22:29:35 +0900 |
commit | c3d189b3298cffcc9436a93f7dba5fa37a213272 (patch) | |
tree | 0acd38c041eaa9575a3ae182382bdc1ace5af372 /siplib/siplib.c | |
parent | 15dc4a7cbd57b18f29b91236ea5e25a438e896c9 (diff) | |
download | sip4-tqt-c3d189b3298cffcc9436a93f7dba5fa37a213272.tar.gz sip4-tqt-c3d189b3298cffcc9436a93f7dba5fa37a213272.zip |
Fix FTBFS described in issue #19r14.1.2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 431aa14fbefd8dfd46c4b4f47f241f03f2c623b8)
Diffstat (limited to 'siplib/siplib.c')
-rw-r--r-- | siplib/siplib.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/siplib/siplib.c b/siplib/siplib.c index b891f79..f2ac7be 100644 --- a/siplib/siplib.c +++ b/siplib/siplib.c @@ -7488,7 +7488,7 @@ static int compareTypeDef(const void *key, const void *el) /* Find which external type it is. */ while (etd->et_nr >= 0) { - const sipTypeDef **tdp = &module_searched->em_types[etd->et_nr]; + const sipTypeDef **tdp = (const sipTypeDef**)&module_searched->em_types[etd->et_nr]; if (tdp == (const sipTypeDef **)el) { @@ -8485,9 +8485,9 @@ static void sipSimpleWrapper_releasebuffer(sipSimpleWrapper *self, const sipClassTypeDef *ctd; if ((ptr = getPtrTypeDef(self, &ctd)) == NULL) - return -1; + return; - return ctd->ctd_releasebuffer((PyObject *)self, ptr, buf); + ctd->ctd_releasebuffer((PyObject *)self, ptr, buf); } @@ -9762,7 +9762,7 @@ static int convertToWCharArray(PyObject *obj, wchar_t **ap, SIP_SSIZE_T *aszp) if ((wc = sip_api_malloc(ulen * sizeof (wchar_t))) == NULL) return -1; - ulen = PyUnicode_AsWideChar((PyUnicodeObject *)obj, wc, ulen); + ulen = PyUnicode_AsWideChar(obj, wc, ulen); if (ulen < 0) { @@ -9797,7 +9797,7 @@ static int convertToWChar(PyObject *obj, wchar_t *ap) if (PyUnicode_GET_LENGTH(obj) != 1) return -1; - if (PyUnicode_AsWideChar((PyUnicodeObject *)obj, ap, 1) != 1) + if (PyUnicode_AsWideChar(obj, ap, 1) != 1) return -1; return 0; @@ -9837,7 +9837,7 @@ static int convertToWCharString(PyObject *obj, wchar_t **ap) if ((wc = sip_api_malloc((ulen + 1) * sizeof (wchar_t))) == NULL) return -1; - ulen = PyUnicode_AsWideChar((PyUnicodeObject *)obj, wc, ulen); + ulen = PyUnicode_AsWideChar(obj, wc, ulen); if (ulen < 0) { |