From 20a574e88902c1bf14d747ebae7e8717422ee38c Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 3 Jul 2013 09:01:44 +0000 Subject: [PATCH] Bugfix: Fix a meaningless comparison "i != -1", where i is an unsigned int is always true - there is no implicit cast of '-1' to unsigned char. It has to read "i != (unsigned char) -1" git-svn-id: https://svn.dealii.org/trunk@29922 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/grid/tria_accessor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deal.II/include/deal.II/grid/tria_accessor.h b/deal.II/include/deal.II/grid/tria_accessor.h index fea0509573..75d44e5a5a 100644 --- a/deal.II/include/deal.II/grid/tria_accessor.h +++ b/deal.II/include/deal.II/grid/tria_accessor.h @@ -3226,7 +3226,7 @@ CellAccessor::id() const } } - Assert(v!=-1, ExcInternalError()); + Assert(v != (unsigned char)-1, ExcInternalError()); id[ptr.level()-1] = v; ptr.copy_from( *(ptr.parent())); -- 2.39.5