]> https://gitweb.dealii.org/ - dealii.git/commitdiff
AffineConstraints: fix warnings 15800/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 26 Jul 2023 17:38:36 +0000 (19:38 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 26 Jul 2023 17:38:36 +0000 (19:38 +0200)
include/deal.II/lac/affine_constraints.h

index 4b5ed6ed3588d5104eed665b12b84135ec95056e..f1cd91d159bb7397cbe02dc8d24b8f5f4f9f6215 100644 (file)
@@ -2524,8 +2524,7 @@ AffineConstraints<number>::merge(
 
               const number weight = entry.second;
 
-              for (const std::pair<size_type, number> &other_entry :
-                   *other_entries)
+              for (const auto &other_entry : *other_entries)
                 tmp.emplace_back(other_entry.first,
                                  other_entry.second * weight);
 
@@ -2600,7 +2599,7 @@ AffineConstraints<number>::merge(
                     line.index,
                     typename ConstraintLine::Entries(line.entries.begin(),
                                                      line.entries.end()),
-                    line.inhomogeneity};
+                    static_cast<number>(line.inhomogeneity)};
                   break;
 
                 default:

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.