diff --git a/dune/solvers/solvers/quadraticipopt.hh b/dune/solvers/solvers/quadraticipopt.hh index f91600a817a721f87194d2867e2f7e2284fc9089..ff32c6955381affb74c21410b20c6cb37d66f966 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_) {