From 1e93f2b5bea9a6c59bb7c61bbaf8fcbb2828d1a4 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 27 Aug 2007 02:10:06 +0000 Subject: [PATCH] Fix warning --- Modules/_lsprof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c index 0da818b4f93..dd74a436bbf 100644 --- a/Modules/_lsprof.c +++ b/Modules/_lsprof.c @@ -178,7 +178,7 @@ normalizeUserObj(PyObject *obj) if (fn->m_self == NULL) { /* built-in function: look up the module name */ PyObject *mod = fn->m_module; - char *modname; + const char *modname; if (mod && PyString_Check(mod)) { modname = PyString_AS_STRING(mod); }