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

@@ -76,15 +76,10 @@ PyObject* FacetPy::unbound(PyObject *args)
getFacetPtr()->Mesh = 0;
Py_Return;
}
#if PY_MAJOR_VERSION >= 3
Py::Long FacetPy::getIndex(void) const
{
return Py::Long((long) getFacetPtr()->Index);
#else
Py::Int FacetPy::getIndex(void) const
{
return Py::Int((long) getFacetPtr()->Index);
#endif
}
Py::Boolean FacetPy::getBound(void) const