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 802add3 commit 616294cCopy full SHA for 616294c
src/PythonQt.cpp
@@ -1656,7 +1656,7 @@ int custom_system_exit_exception_handler()
1656
/* If we failed to dig out the 'code' attribute,
1657
just let the else clause below print the error. */
1658
}
1659
- if (PyInt_Check(value))
+ if (PyLong_Check(value))
1660
exitcode = (int)PyInt_AsLong(value);
1661
else {
1662
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