From 95a3258dcd8a75f88f8300ed0448699daaca8243 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 10 Apr 2000 16:43:57 +0000 Subject: [PATCH] Fix problem on AIX. git-svn-id: https://svn.dealii.org/branches/Branch-3-0@2693 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/dofs/dof_constraints.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }; -- 2.39.5