diff --git a/opm/autodiff/RedistributeDataHandles.hpp b/opm/autodiff/RedistributeDataHandles.hpp index 9b833b089..ba09be26e 100644 --- a/opm/autodiff/RedistributeDataHandles.hpp +++ b/opm/autodiff/RedistributeDataHandles.hpp @@ -165,7 +165,7 @@ public: void scatter(B& buffer, const T& e, std::size_t size) { assert( T::codimension == 0); - assert( size == 2 * recvState_.numPhases() +4+2*recvGrid_.numCellFaces(e.index())); + assert( int(size) == 2 * recvState_.numPhases() +4+2*recvGrid_.numCellFaces(e.index())); static_cast(size); double val;