Unified voronoi indices for python to be of type long

This commit is contained in:
Markus Lampert
2020-09-29 12:54:57 -07:00
committed by sliptonic
parent ebae99c9e0
commit e3c476af21
6 changed files with 18 additions and 18 deletions

View File

@@ -130,12 +130,12 @@ VoronoiEdge* getVoronoiEdgeFromPy(const VoronoiEdgePy *e, PyObject *args = 0) {
return self;
}
Py::Int VoronoiEdgePy::getIndex(void) const {
Py::Long VoronoiEdgePy::getIndex(void) const {
VoronoiEdge *e = getVoronoiEdgePtr();
if (e->isBound()) {
return Py::Int(e->dia->index(e->ptr));
return Py::Long(e->dia->index(e->ptr));
}
return Py::Int(-1);
return Py::Long(-1);
}
Py::Long VoronoiEdgePy::getColor(void) const {