From f061993d4ae22dc7d1dfdd32e57b84191d4813eb Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 2 Dec 2022 09:58:43 -0500 Subject: [PATCH] fix warning: -1 assignment to unsigned --- include/deal.II/numerics/vector_tools_constraints.templates.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) { -- 2.39.5