diff --git a/src/Gui/ApplicationPy.cpp b/src/Gui/ApplicationPy.cpp index 51eb0e7031..6419adc173 100644 --- a/src/Gui/ApplicationPy.cpp +++ b/src/Gui/ApplicationPy.cpp @@ -1305,7 +1305,7 @@ PyObject* ApplicationPy::sAddCommand(PyObject * /*self*/, PyObject *args) Py::Object callerFrame; Py::Tuple getFrameArgs(1); - getFrameArgs[0] = Py::Int(0); + getFrameArgs[0] = Py::Long(0); callerFrame = getFrame.apply(getFrameArgs); Py::Object codeObj (callerFrame.getAttr("f_code"));