From e97f7a8a5481c195b1dc99a35a877eec192e1491 Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Tue, 29 Sep 2020 17:02:57 -0700 Subject: [PATCH] More integer type cleanup for the voronoi python interface --- src/Mod/Path/App/VoronoiCellPyImp.cpp | 2 +- src/Mod/Path/App/VoronoiEdgePyImp.cpp | 2 +- src/Mod/Path/App/VoronoiVertexPyImp.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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