py3: fix Python2 build

This commit is contained in:
wmayer
2017-02-28 18:08:06 +01:00
parent 52e8d56ca6
commit 66bbdecd07
2 changed files with 0 additions and 36 deletions

View File

@@ -227,15 +227,9 @@ PyObject* PointsPy::fromValid(PyObject * args)
}
}
#if PY_MAJOR_VERSION >= 3
Py::Long PointsPy::getCountPoints(void) const
{
return Py::Long((long)getPointKernelPtr()->size());
#else
Py::Int PointsPy::getCountPoints(void) const
{
return Py::Int((long)getPointKernelPtr()->size());
#endif
}
Py::List PointsPy::getPoints(void) const