From f6dc312681668ffead5601c1ee452f0ba13f1a8a Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Mon, 6 Mar 2017 22:43:48 +0100 Subject: [PATCH] Part: Fixing signed vs unsigned warning --- src/Mod/Part/App/Geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/App/Geometry.cpp b/src/Mod/Part/App/Geometry.cpp index d9634c8c57..2e9b198087 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -635,12 +635,12 @@ GeomBSplineCurve::GeomBSplineCurve( const std::vector& poles, co TColStd_Array1OfReal k(1,knots.size()); TColStd_Array1OfInteger m(1,knots.size()); - for (int i = 1; i <= poles.size(); i++) { + for (std::size_t i = 1; i <= poles.size(); i++) { p.SetValue(i, gp_Pnt(poles[i-1].x,poles[i-1].y,poles[i-1].z)); w.SetValue(i, weights[i-1]); } - for (int i = 1; i <= knots.size(); i++) { + for (std::size_t i = 1; i <= knots.size(); i++) { k.SetValue(i, knots[i-1]); m.SetValue(i, multiplicities[i-1]); }