From edef846d1244f5fcf32dc763aff68b6ebaac2106 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Tue, 1 Aug 2017 00:20:27 +0200
Subject: [PATCH] fix argument types in call to PyErr_WriteUnraisable()

---
 Cython/Utility/ModuleSetupCode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index e769af4da..60f3ccb96 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -593,7 +593,7 @@ static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyTypeObject *err, PyTypeObj
     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);
+        PyErr_WriteUnraisable((PyObject*)err);
         res = 0;
     }
     if (!res) {
@@ -601,7 +601,7 @@ static int __Pyx_inner_PyErr_GivenExceptionMatches2(PyTypeObject *err, PyTypeObj
         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);
+            PyErr_WriteUnraisable((PyObject*)err);
             res = 0;
         }
     }
-- 
2.30.9