From 117049de225f835dd03a847a95337fd0c4206c74 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 6 Sep 2008 10:26:00 +0200 Subject: [PATCH] const parameter fix by Ondrej --- Cython/Compiler/Nodes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 300933ca..2008f921 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -4364,9 +4364,12 @@ static void __Pyx_ReRaise(void) { arg_type_test_utility_code = [ """ -static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name, int exact); /*proto*/ +static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, + const char *name, int exact); /*proto*/ """,""" -static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, char *name, int exact) { +static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, + const char *name, int exact) +{ if (!type) { PyErr_Format(PyExc_SystemError, "Missing type object"); return 0; -- 2.26.2