X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7c75283f2144469e8fa6a24ca285b42fab69a6b..dcb1fb696ca55c0af0c524c561058717aae36932:/wxPython/src/my_typemaps.i diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index c1a37dfc22..b130f580be 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -268,7 +268,9 @@ //--------------------------------------------------------------------------- -%typemap(out) bool "$result = PyBool_FromLong((bool)$1);" +%typemap(out) bool { + $result = $1 ? Py_True : Py_False; Py_INCREF($result); +} //---------------------------------------------------------------------------