Skip to content

Commit 2bb2ad8

Browse files
committed
chore(PythonQt): replace PyInt_Check with PyLong_Check
No functional change intended.
1 parent 994ceb4 commit 2bb2ad8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/PythonQt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,7 @@ int custom_system_exit_exception_handler()
16551655
/* If we failed to dig out the 'code' attribute,
16561656
just let the else clause below print the error. */
16571657
}
1658-
if (PyInt_Check(value))
1658+
if (PyLong_Check(value))
16591659
exitcode = (int)PyInt_AsLong(value);
16601660
else {
16611661
PyObject *sys_stderr = PySys_GetObject(const_cast<char*>("stderr"));

src/PythonQtPythonInclude.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@
126126
#define PyString_FromFormat PyUnicode_FromFormat
127127
#define PyString_Check PyUnicode_Check
128128

129-
#define PyInt_Check PyLong_Check
130129
#define PyInt_AsLong PyLong_AsLong
131130

132131
#else

0 commit comments

Comments
 (0)