More integer type cleanup for the voronoi python interface
This commit is contained in:
committed by
sliptonic
parent
e3c476af21
commit
e97f7a8a54
@@ -128,7 +128,7 @@ Py::Long VoronoiCellPy::getColor(void) const {
|
||||
}
|
||||
|
||||
void VoronoiCellPy::setColor(Py::Long color) {
|
||||
getCellFromPy(this)->color(int(color) & Voronoi::ColorMask);
|
||||
getCellFromPy(this)->color(long(color) & Voronoi::ColorMask);
|
||||
}
|
||||
|
||||
Py::Long VoronoiCellPy::getSourceIndex(void) const
|
||||
|
||||
@@ -147,7 +147,7 @@ Py::Long VoronoiEdgePy::getColor(void) const {
|
||||
}
|
||||
|
||||
void VoronoiEdgePy::setColor(Py::Long color) {
|
||||
getEdgeFromPy(this)->color(int(color) & Voronoi::ColorMask);
|
||||
getEdgeFromPy(this)->color(long(color) & Voronoi::ColorMask);
|
||||
}
|
||||
|
||||
Py::List VoronoiEdgePy::getVertices(void) const
|
||||
|
||||
@@ -130,7 +130,7 @@ Py::Long VoronoiVertexPy::getColor(void) const {
|
||||
}
|
||||
|
||||
void VoronoiVertexPy::setColor(Py::Long color) {
|
||||
getVertexFromPy(this)->color(int(color) & Voronoi::ColorMask);
|
||||
getVertexFromPy(this)->color(long(color) & Voronoi::ColorMask);
|
||||
}
|
||||
|
||||
Py::Float VoronoiVertexPy::getX(void) const
|
||||
|
||||
Reference in New Issue
Block a user