From 99c7e72ff88b19d23928c443c03e690c7015eb81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 24 Jul 2023 13:23:30 +0700 Subject: [PATCH] wxPython4: fix build failure --- srcpkgs/wxPython4/patches/nullptr-cast.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/wxPython4/patches/nullptr-cast.patch diff --git a/srcpkgs/wxPython4/patches/nullptr-cast.patch b/srcpkgs/wxPython4/patches/nullptr-cast.patch new file mode 100644 index 00000000000..d9351c714b4 --- /dev/null +++ b/srcpkgs/wxPython4/patches/nullptr-cast.patch @@ -0,0 +1,11 @@ +--- a/sip/cpp/sip_propgridwxPGPropArgCls.cpp ++++ b/sip/cpp/sip_propgridwxPGPropArgCls.cpp +@@ -317,7 +317,7 @@ static int convertTo_wxPGPropArgCls(PyOb + return sipGetState(sipTransferObj); + } + else if (sipPy == Py_None) { +- *sipCppPtr = new wxPGPropArgCls(reinterpret_cast< wxPGProperty * >(NULL)); ++ *sipCppPtr = new wxPGPropArgCls(static_cast< wxPGProperty * >(NULL)); + return sipGetState(sipTransferObj); + } + else {