py3: fix Python2 build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user