mirror of https://github.com/swig/swig
fix char* warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
97143647b6
commit
581c068154
|
@ -216,7 +216,7 @@ extern "C" {
|
|||
SWIGRUNTIMEINLINE PyObject *
|
||||
_SWIG_Py_None(void)
|
||||
{
|
||||
PyObject *none = Py_BuildValue("");
|
||||
PyObject *none = Py_BuildValue((char*)"");
|
||||
Py_DECREF(none);
|
||||
return none;
|
||||
}
|
||||
|
@ -1196,7 +1196,7 @@ SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
|
|||
return;
|
||||
}
|
||||
#endif
|
||||
dict = PyObject_GetAttrString(inst, "__dict__");
|
||||
dict = PyObject_GetAttrString(inst, (char*)"__dict__");
|
||||
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
||||
Py_DECREF(dict);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue