From: Timo Heister Date: Fri, 2 Dec 2022 14:58:43 +0000 (-0500) Subject: fix warning: -1 assignment to unsigned X-Git-Tag: v9.5.0-rc1~769^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14519%2Fhead;p=dealii.git fix warning: -1 assignment to unsigned --- diff --git a/include/deal.II/numerics/vector_tools_constraints.templates.h b/include/deal.II/numerics/vector_tools_constraints.templates.h index b941e2cdbe..35f6e84b42 100644 --- a/include/deal.II/numerics/vector_tools_constraints.templates.h +++ b/include/deal.II/numerics/vector_tools_constraints.templates.h @@ -1494,7 +1494,7 @@ namespace VectorTools // constraint indices will get the normal that contain the other // indices. Tensor<1, dim> normal; - unsigned constrained_index = -1; + unsigned int constrained_index = numbers::invalid_unsigned_int; for (unsigned int d = 0; d < dim; ++d) if (is_constrained[d]) {