1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

New compiler warnings (vc10 64-bit) fixed in BOPCol_TBB.hxx

This commit is contained in:
abv 2014-04-04 08:48:45 +04:00
parent 6858f70e9a
commit 049d51911f

View File

@ -92,8 +92,8 @@ template <class TypeSolver,
~BOPCol_TBBFunctor() { ~BOPCol_TBBFunctor() {
} }
// //
void operator()( const flexible_range<Standard_Size>& aBR ) const{ void operator()( const flexible_range<Standard_Integer>& aBR ) const{
Standard_Size i, iBeg, iEnd; Standard_Integer i, iBeg, iEnd;
// //
TypeSolverVector& aV=*myPV; TypeSolverVector& aV=*myPV;
// //
@ -123,13 +123,13 @@ template <class TypeFunctor,
TypeSolverVector& aV) { TypeSolverVector& aV) {
// //
TypeFunctor aFunctor(aV); TypeFunctor aFunctor(aV);
Standard_Size aNb=aV.Extent(); Standard_Integer aNb=aV.Extent();
// //
if (bRunParallel) { if (bRunParallel) {
flexible_for(flexible_range<Standard_Size>(0,aNb), aFunctor); flexible_for(flexible_range<Standard_Integer>(0,aNb), aFunctor);
} }
else { else {
aFunctor.operator()(flexible_range<Standard_Size>(0,aNb)); aFunctor.operator()(flexible_range<Standard_Integer>(0,aNb));
} }
} }
}; };
@ -159,8 +159,8 @@ template <class TypeSolver,
myContext=aCtx; myContext=aCtx;
} }
// //
void operator()( const flexible_range<Standard_Size>& aBR ) const{ void operator()( const flexible_range<Standard_Integer>& aBR ) const{
Standard_Size i, iBeg, iEnd; Standard_Integer i, iBeg, iEnd;
TypeContext aCtx; TypeContext aCtx;
// //
if (myContext.IsNull()) { if (myContext.IsNull()) {
@ -205,14 +205,14 @@ template <class TypeFunctor,
TypeContext& aCtx) { TypeContext& aCtx) {
// //
TypeFunctor aFunctor(aV); TypeFunctor aFunctor(aV);
Standard_Size aNb=aV.Extent(); Standard_Integer aNb=aV.Extent();
// //
if (bRunParallel) { if (bRunParallel) {
flexible_for(flexible_range<Standard_Size>(0,aNb), aFunctor); flexible_for(flexible_range<Standard_Integer>(0,aNb), aFunctor);
} }
else { else {
aFunctor.SetContext(aCtx); aFunctor.SetContext(aCtx);
aFunctor.operator()(flexible_range<Standard_Size>(0,aNb)); aFunctor.operator()(flexible_range<Standard_Integer>(0,aNb));
} }
} }
}; };