From 706f86540cc635b7f66af465405e5240e1055878 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 10 Apr 2000 16:45:45 +0000 Subject: [PATCH] Fix problem with size_t!=unsigned int on AIX. git-svn-id: https://svn.dealii.org/trunk@2694 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