From 3021e650d37949e1d8799bd4236f1112b6f001b4 Mon Sep 17 00:00:00 2001 From: Jonathan Youett <youett@math.fu-berlin.de> Date: Tue, 23 Feb 2016 15:21:29 +0100 Subject: [PATCH] Avoid comparison of signed and unsigned integers --- dune/solvers/test/mmgtest.cc | 2 +- dune/solvers/test/quadraticipoptsolvertest.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/solvers/test/mmgtest.cc b/dune/solvers/test/mmgtest.cc index 453775ff..ea53a9fd 100644 --- a/dune/solvers/test/mmgtest.cc +++ b/dune/solvers/test/mmgtest.cc @@ -65,7 +65,7 @@ void solveObstacleProblemByMMGSolver(const GridType& grid, const MatrixType& mat mmgStep.hasObstacle_ = &hasObstacle; std::vector<BoxConstraint<typename VectorType::field_type,blockSize> > boxConstraints(rhs.size()); - for (int i = 0; i < boxConstraints.size(); ++i) + for (size_t i = 0; i < boxConstraints.size(); ++i) { for (int j = 0; j < blockSize; ++j) { diff --git a/dune/solvers/test/quadraticipoptsolvertest.cc b/dune/solvers/test/quadraticipoptsolvertest.cc index 2516373f..e5f19898 100644 --- a/dune/solvers/test/quadraticipoptsolvertest.cc +++ b/dune/solvers/test/quadraticipoptsolvertest.cc @@ -34,7 +34,7 @@ void solveObstacleProblemByQuadraticIPOptSolver(const GridType& grid, const Matr // create double obstacle constraints std::vector<BoxConstraint<typename VectorType::field_type,blockSize> > boxConstraints(rhs.size()); - for (int i = 0; i < boxConstraints.size(); ++i) + for (size_t i = 0; i < boxConstraints.size(); ++i) { for (int j = 0; j < blockSize; ++j) { -- GitLab