X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParametersPlugin%2FParametersPlugin_PyInterp.cpp;h=054c8c3e2bdbe1b209c381d7f10551f928dd5c6d;hb=4d6bb9de0e54f09a9bbacc94a058cb7cd437d535;hp=021f285527d64c30a06933c345433a28eeff2c68;hpb=f0a9f97c40b8696366b1f155d076cf0a57678055;p=modules%2Fshaper.git diff --git a/src/ParametersPlugin/ParametersPlugin_PyInterp.cpp b/src/ParametersPlugin/ParametersPlugin_PyInterp.cpp index 021f28552..054c8c3e2 100644 --- a/src/ParametersPlugin/ParametersPlugin_PyInterp.cpp +++ b/src/ParametersPlugin/ParametersPlugin_PyInterp.cpp @@ -81,7 +81,7 @@ std::list ParametersPlugin_PyInterp::compile(const std::string& the } PyObject *aCodePyObj = - PyObject_CallMethod(aCodeopModule, "compile_command", "(s)", theExpression.c_str()); + PyObject_CallMethod(aCodeopModule, (char*)"compile_command", (char*)"(s)", theExpression.c_str()); if(!aCodePyObj || aCodePyObj == Py_None || !PyCode_Check(aCodePyObj)) { Py_XDECREF(aCodePyObj); @@ -93,7 +93,7 @@ std::list ParametersPlugin_PyInterp::compile(const std::string& the // co_names should be tuple, but can be changed in modern versions of python (>2.7.3) if(!PyTuple_Check(aCodeObj->co_names)) return aResult; - + int params_size = PyTuple_Size(aCodeObj->co_names); if (params_size > 0) { for (int i = 0; i < params_size; i++) {