Commit 695dd2a9 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

fix integer comparison warning

parent 847c3e5d
...@@ -101,7 +101,7 @@ namespace Dune ...@@ -101,7 +101,7 @@ namespace Dune
double evaluate (int c, LocalCoordinate const& xi) const double evaluate (int c, LocalCoordinate const& xi) const
{ {
assert(bool(localFct_)); assert(bool(localFct_));
return c < components_.size() ? localFct_->evaluate(components_[c], xi) : 0.0; return c < int(components_.size()) ? localFct_->evaluate(components_[c], xi) : 0.0;
} }
void setComponents (std::vector<int> components) void setComponents (std::vector<int> components)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment