cast implicit string objects to char * for C++ standard compliance

This commit is contained in:
Axel Kohlmeyer 2018-05-04 21:13:02 -04:00
parent 9a389c946c
commit e242b37619
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ FixPythonMove::FixPythonMove(LAMMPS *lmp, int narg, char **arg) :
PyGILState_STATE gstate = PyGILState_Ensure();
// add current directory to PYTHONPATH
PyObject * py_path = PySys_GetObject("path");
PyObject * py_path = PySys_GetObject((char *)"path");
PyList_Append(py_path, PY_STRING_FROM_STRING("."));
@ -136,7 +136,7 @@ void FixPythonMove::init()
{
PyGILState_STATE gstate = PyGILState_Ensure();
PyObject *py_move_obj = (PyObject *) py_move;
PyObject *py_init = PyObject_GetAttrString(py_move_obj,"init");
PyObject *py_init = PyObject_GetAttrString(py_move_obj,(char *)"init");
if (!py_init) {
PyErr_Print();
PyErr_Clear();