diff --git a/src/Mod/Sketcher/App/planegcs/Constraints.cpp b/src/Mod/Sketcher/App/planegcs/Constraints.cpp index 59e4f5ea7..3e07e89c6 100644 --- a/src/Mod/Sketcher/App/planegcs/Constraints.cpp +++ b/src/Mod/Sketcher/App/planegcs/Constraints.cpp @@ -89,10 +89,10 @@ int Constraint::findParamInPvec(double *param) int ret = -1; for( std::size_t i=0 ; i(i); break; - }; - }; + } + } return ret; } diff --git a/src/Mod/Sketcher/App/planegcs/SubSystem.cpp b/src/Mod/Sketcher/App/planegcs/SubSystem.cpp index e6bb83212..f7da63fa3 100644 --- a/src/Mod/Sketcher/App/planegcs/SubSystem.cpp +++ b/src/Mod/Sketcher/App/planegcs/SubSystem.cpp @@ -48,7 +48,7 @@ SubSystem::~SubSystem() void SubSystem::initialize(VEC_pD ¶ms, MAP_pD_pD &reductionmap) { - csize = clist.size(); + csize = static_cast(clist.size()); // tmpplist will contain the subset of parameters from params that are // relevant for the constraints listed in clist @@ -95,7 +95,7 @@ void SubSystem::initialize(VEC_pD ¶ms, MAP_pD_pD &reductionmap) else plist = tmpplist; - psize = plist.size(); + psize = static_cast(plist.size()); pvals.resize(psize); pmap.clear(); for (int j=0; j < psize; j++) {