fix char* warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9046 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a2f06a36d2
commit
9aa5d0fd77
1 changed files with 2 additions and 2 deletions
|
|
@ -216,7 +216,7 @@ extern "C" {
|
||||||
SWIGRUNTIMEINLINE PyObject *
|
SWIGRUNTIMEINLINE PyObject *
|
||||||
_SWIG_Py_None(void)
|
_SWIG_Py_None(void)
|
||||||
{
|
{
|
||||||
PyObject *none = Py_BuildValue("");
|
PyObject *none = Py_BuildValue((char*)"");
|
||||||
Py_DECREF(none);
|
Py_DECREF(none);
|
||||||
return none;
|
return none;
|
||||||
}
|
}
|
||||||
|
|
@ -1196,7 +1196,7 @@ SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
dict = PyObject_GetAttrString(inst, "__dict__");
|
dict = PyObject_GetAttrString(inst, (char*)"__dict__");
|
||||||
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
||||||
Py_DECREF(dict);
|
Py_DECREF(dict);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue