py3: Mesh: fix py3 Long/Int problem with python2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user