We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PyInt_Check
PyLong_Check
1 parent 994ceb4 commit 2bb2ad8Copy full SHA for 2bb2ad8
src/PythonQt.cpp
@@ -1655,7 +1655,7 @@ int custom_system_exit_exception_handler()
1655
/* If we failed to dig out the 'code' attribute,
1656
just let the else clause below print the error. */
1657
}
1658
- if (PyInt_Check(value))
+ if (PyLong_Check(value))
1659
exitcode = (int)PyInt_AsLong(value);
1660
else {
1661
PyObject *sys_stderr = PySys_GetObject(const_cast<char*>("stderr"));
src/PythonQtPythonInclude.h
@@ -126,7 +126,6 @@
126
#define PyString_FromFormat PyUnicode_FromFormat
127
#define PyString_Check PyUnicode_Check
128
129
-#define PyInt_Check PyLong_Check
130
#define PyInt_AsLong PyLong_AsLong
131
132
#else
0 commit comments