]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix problem on AIX.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Apr 2000 16:43:57 +0000 (16:43 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Apr 2000 16:43:57 +0000 (16:43 +0000)
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

index b1f2afbedce5d192e4c2d1f8a134479b5f1ad887..633e6b28903d4440816363d422f8f1657c196ddb 100644 (file)
@@ -376,7 +376,11 @@ unsigned int ConstraintMatrix::max_constraint_indirections () const
   unsigned int return_value = 0;
   for (vector<ConstraintLine>::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<unsigned int>(i->entries.size()));
 
   return return_value;
 };

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.