Skip to content
Snippets Groups Projects
Commit e242b376 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

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

parent 9a389c94
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ FixPythonMove::FixPythonMove(LAMMPS *lmp, int narg, char **arg) : ...@@ -47,7 +47,7 @@ FixPythonMove::FixPythonMove(LAMMPS *lmp, int narg, char **arg) :
PyGILState_STATE gstate = PyGILState_Ensure(); PyGILState_STATE gstate = PyGILState_Ensure();
// add current directory to PYTHONPATH // 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(".")); PyList_Append(py_path, PY_STRING_FROM_STRING("."));
...@@ -136,7 +136,7 @@ void FixPythonMove::init() ...@@ -136,7 +136,7 @@ void FixPythonMove::init()
{ {
PyGILState_STATE gstate = PyGILState_Ensure(); PyGILState_STATE gstate = PyGILState_Ensure();
PyObject *py_move_obj = (PyObject *) py_move; 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) { if (!py_init) {
PyErr_Print(); PyErr_Print();
PyErr_Clear(); PyErr_Clear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment