Skip to content

Commit 616294c

Browse files
jcfrmrbean-bremen
authored andcommitted
chore(PythonQt): replace PyInt_Check with PyLong_Check
No functional change intended.
1 parent 802add3 commit 616294c

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
@@ -1656,7 +1656,7 @@ int custom_system_exit_exception_handler()
16561656
/* If we failed to dig out the 'code' attribute,
16571657
just let the else clause below print the error. */
16581658
}
1659-
if (PyInt_Check(value))
1659+
if (PyLong_Check(value))
16601660
exitcode = (int)PyInt_AsLong(value);
16611661
else {
16621662
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)