gcc-4.2 warning fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10186 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-12-09 22:27:38 +00:00
commit 521059242c
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@
static int asptr(PyObject *obj, map_type **val) {
int res = SWIG_ERROR;
if (PyDict_Check(obj)) {
PyObject_var items = PyObject_CallMethod(obj,"items",NULL);
PyObject_var items = PyObject_CallMethod(obj,(char *)"items",NULL);
res = traits_asptr_stdseq<std::map<K,T>, std::pair<K, T> >::asptr(items, val);
} else {
map_type *p;