diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2017-08-01 00:10:15 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2017-08-01 00:10:15 +0200 |
commit | 2e56693a3bb46e4504b9213dbf38a5e219f9d932 (patch) | |
tree | 34568e539e166167e96c435af331407209985c04 /Cython/Utility/ModuleSetupCode.c | |
parent | 609870b2cd41c076242a8766f0f5ffa996a2b17e (diff) | |
download | cython-2e56693a3bb46e4504b9213dbf38a5e219f9d932.tar.gz |
fix argument types in call to PyObject_IsSubclass()
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 7674b87ea..e769af4da 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -590,7 +590,7 @@ static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyTypeObject *err, PyTypeObj __Pyx_PyThreadState_assign __Pyx_ErrFetch(&exception, &value, &tb); - res = exc_type1 ? PyObject_IsSubclass(err, exc_type1) : 0; + res = exc_type1 ? PyObject_IsSubclass((PyObject*)err, (PyObject*)exc_type1) : 0; // This function must not fail, so print the error here if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); @@ -598,7 +598,7 @@ static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyTypeObject *err, PyTypeObj } if (!res) { __Pyx_ErrRestore(exception, value, tb); - res = PyObject_IsSubclass(err, exc_type2); + res = PyObject_IsSubclass((PyObject*)err, (PyObject*)exc_type2); // This function must not fail, so print the error here if (unlikely(res == -1)) { PyErr_WriteUnraisable(err); |