diff --git a/src/Mod/Path/App/VoronoiCellPyImp.cpp b/src/Mod/Path/App/VoronoiCellPyImp.cpp index bf4e998aff..8e780f2d57 100644 --- a/src/Mod/Path/App/VoronoiCellPyImp.cpp +++ b/src/Mod/Path/App/VoronoiCellPyImp.cpp @@ -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 diff --git a/src/Mod/Path/App/VoronoiEdgePyImp.cpp b/src/Mod/Path/App/VoronoiEdgePyImp.cpp index 91a3d50268..6043754b60 100644 --- a/src/Mod/Path/App/VoronoiEdgePyImp.cpp +++ b/src/Mod/Path/App/VoronoiEdgePyImp.cpp @@ -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 diff --git a/src/Mod/Path/App/VoronoiVertexPyImp.cpp b/src/Mod/Path/App/VoronoiVertexPyImp.cpp index c03fa30b55..837c2efea4 100644 --- a/src/Mod/Path/App/VoronoiVertexPyImp.cpp +++ b/src/Mod/Path/App/VoronoiVertexPyImp.cpp @@ -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