From: Matthias Maier Date: Wed, 3 Jul 2013 09:01:44 +0000 (+0000) Subject: Bugfix: Fix a meaningless comparison X-Git-Tag: v8.0.0~196 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20a574e88902c1bf14d747ebae7e8717422ee38c;p=dealii.git 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 --- 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()));