From: wolf Date: Mon, 10 Apr 2000 16:43:57 +0000 (+0000) Subject: Fix problem on AIX. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95a3258dcd8a75f88f8300ed0448699daaca8243;p=dealii-svn.git Fix problem on AIX. git-svn-id: https://svn.dealii.org/branches/Branch-3-0@2693 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/dofs/dof_constraints.cc b/deal.II/deal.II/source/dofs/dof_constraints.cc index b1f2afbedc..633e6b2890 100644 --- a/deal.II/deal.II/source/dofs/dof_constraints.cc +++ b/deal.II/deal.II/source/dofs/dof_constraints.cc @@ -376,7 +376,11 @@ unsigned int ConstraintMatrix::max_constraint_indirections () const unsigned int return_value = 0; for (vector::const_iterator i=lines.begin(); i!=lines.end(); ++i) - return_value = max(return_value, i->entries.size()); + // use static cast, since + // typeof(size)==size_t, which is + // != unsigned int on AIX + return_value = max(return_value, + static_cast(i->entries.size())); return return_value; };