From: maier Date: Wed, 3 Jul 2013 09:01:44 +0000 (+0000) Subject: Bugfix: Fix a meaningless comparison X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d222a8ac4af1de61c34a83b7e4788c6a739999a7;p=dealii-svn.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()));