void-packages/srcpkgs/sigil/patches/python-3.11.patch

12 lines
555 B
Diff

--- a/src/EmbedPython/EmbeddedPython.cpp
+++ b/src/EmbedPython/EmbeddedPython.cpp
@@ -480,7 +480,7 @@ QVariant EmbeddedPython::PyObjectToQVari
if (kind == PyUnicode_1BYTE_KIND) {
// latin 1 according to PEP 393
- res = QVariant(QString::fromLatin1(reinterpret_cast<const char *>PyUnicode_1BYTE_DATA(po), -1));
+ res = QVariant(QString::fromLatin1(reinterpret_cast<const char *>(PyUnicode_1BYTE_DATA(po)), -1));
} else if (kind == PyUnicode_2BYTE_KIND) {
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)