From a1b15cede07f491a2d200a880f970d95146caa7f Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 2 Nov 2004 08:24:22 +0000 Subject: [PATCH] fix warnings git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6614 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pyrun.swg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg index 9f4b5b533..39f565626 100644 --- a/Lib/python/pyrun.swg +++ b/Lib/python/pyrun.swg @@ -532,16 +532,16 @@ SWIG_Python_LookupTypePointer(swig_type_info ***type_list_handle) { void *type_pointer; /* first check if module already created */ - type_pointer = PyCObject_Import("swig_runtime_data" SWIG_RUNTIME_VERSION, "type_pointer" SWIG_TYPE_TABLE_NAME); + type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, "type_pointer" SWIG_TYPE_TABLE_NAME); if (type_pointer) { *type_list_handle = (swig_type_info **) type_pointer; } else { PyErr_Clear(); /* create a new module and variable */ - module = Py_InitModule("swig_runtime_data" SWIG_RUNTIME_VERSION, NULL); + module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, NULL); pointer = PyCObject_FromVoidPtr((void *) (*type_list_handle), NULL); if (pointer && module) { - PyModule_AddObject(module, "type_pointer" SWIG_TYPE_TABLE_NAME, pointer); + PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); } } }