From acb70a7c460246b77386373ff9e85ec8d8e4559d Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Fri, 3 May 2013 13:44:08 +0000 Subject: [PATCH] explicit cast to get rid of a signed/unsigned warning [[Imported from SVN: r8652]] --- dune/solvers/solvers/quadraticipopt.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/solvers/solvers/quadraticipopt.hh b/dune/solvers/solvers/quadraticipopt.hh index f91600a8..ff32c695 100644 --- a/dune/solvers/solvers/quadraticipopt.hh +++ b/dune/solvers/solvers/quadraticipopt.hh @@ -182,7 +182,7 @@ get_bounds_info(Ipopt::Index n, Ipopt::Number* x_l, Ipopt::Number* x_u, { // here, the n and m we gave IPOPT in get_nlp_info are passed back to us. // If desired, we could assert to make sure they are what we think they are. - assert(n == x_->dim()); + assert(n == (Ipopt::Index)x_->dim()); assert(m == 0); if (obstacles_) { -- GitLab