Unified voronoi indices for python to be of type long
This commit is contained in:
committed by
sliptonic
parent
ebae99c9e0
commit
e3c476af21
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user