From 0efdb76f5584f78570b7de5fdf4fc49c4c6f6cfd Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Fri, 7 Nov 2008 09:48:25 -0300 Subject: [PATCH] add explicit cast to avoid GCC warnings with -Wwrite-strings --- Cython/Compiler/Nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index f127e56d..10700cd2 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -5118,8 +5118,8 @@ impl = r""" static int __Pyx_GetVtable(PyObject *dict, void *vtabptr) { int result; PyObject *pycobj; - - pycobj = PyMapping_GetItemString(dict, "__pyx_vtable__"); + + pycobj = PyMapping_GetItemString(dict, (char *)"__pyx_vtable__"); if (!pycobj) goto bad; *(void **)vtabptr = PyCObject_AsVoidPtr(pycobj); -- 2.26.2