Dealing with 32bit compile error of Voronoi interface.

This commit is contained in:
Markus Lampert
2020-10-04 22:44:45 -07:00
parent 7db21217f4
commit 99cbb413e0
4 changed files with 15 additions and 5 deletions

View File

@@ -141,7 +141,8 @@ Py::Long VoronoiEdgePy::getIndex(void) const {
Py::Long VoronoiEdgePy::getColor(void) const {
VoronoiEdge *e = getVoronoiEdgePtr();
if (e->isBound()) {
return Py::Long(e->ptr->color() & Voronoi::ColorMask);
Voronoi::color_type color = e->ptr->color() & Voronoi::ColorMask;
return Py::Long(color);
}
return Py::Long(0);
}