py3: Mesh: fix py3 Long/Int problem with python2

This commit is contained in:
looooo
2017-02-23 18:53:39 +01:00
committed by wmayer
parent ab0adc1887
commit f1fcefb228
4 changed files with 3 additions and 30 deletions

View File

@@ -100,15 +100,9 @@ PyObject* MeshPointPy::move(PyObject *args)
Py_Return;
}
#if PY_MAJOR_VERSION >= 3
Py::Long MeshPointPy::getIndex(void) const
{
return Py::Long((long) getMeshPointPtr()->Index);
#else
Py::Int MeshPointPy::getIndex(void) const
{
return Py::Int((long) getMeshPointPtr()->Index);
#endif
}
Py::Boolean MeshPointPy::getBound(void) const