From: Stefan Behnel Date: Sat, 6 Sep 2008 08:26:00 +0000 (+0200) Subject: const parameter fix by Ondrej X-Git-Tag: 0.9.9.2.beta~95^2~9^2~4 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=117049de225f835dd03a847a95337fd0c4206c74;p=cython.git const parameter fix by Ondrej --- 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;