Dealing with 32bit compile error of Voronoi interface.
This commit is contained in:
@@ -124,7 +124,8 @@ Py::Long VoronoiVertexPy::getIndex(void) const {
|
||||
Py::Long VoronoiVertexPy::getColor(void) const {
|
||||
VoronoiVertex *v = getVoronoiVertexPtr();
|
||||
if (v->isBound()) {
|
||||
return Py::Long(v->ptr->color() & Voronoi::ColorMask);
|
||||
Voronoi::color_type color = v->ptr->color() & Voronoi::ColorMask;
|
||||
return Py::Long(color);
|
||||
}
|
||||
return Py::Long(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user