fix warning in solaris
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
51a55b9705
commit
f59680b810
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@
|
|||
/* set constant */
|
||||
%define %set_constant(name, obj) %begin_block
|
||||
PyObject *_obj = obj;
|
||||
PyDict_SetItemString(d, name, _obj);
|
||||
PyDict_SetItemString(d, (char*) name, _obj);
|
||||
Py_DECREF(_obj);
|
||||
%end_block %enddef
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue