diff --git a/Lib/python/pytypemaps.swg b/Lib/python/pytypemaps.swg index 777a2fb42..58dc067ab 100644 --- a/Lib/python/pytypemaps.swg +++ b/Lib/python/pytypemaps.swg @@ -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