From: Bruno Turcksin Date: Tue, 17 Nov 2015 15:25:47 +0000 (-0600) Subject: Improve operator -- X-Git-Tag: v8.4.0-rc2~221^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1878%2Fhead;p=dealii.git Improve operator -- --- diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index 4e68cf6f98..031e86d770 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -2240,10 +2240,11 @@ inline void TriaAccessor<0, dim, spacedim>::operator -- () { - if (global_vertex_index!=numbers::invalid_unsigned_int) + if (global_vertex_index != numbers::invalid_unsigned_int) { - --global_vertex_index; - if (global_vertex_index==static_cast(-1)) + if (global_vertex_index != 0) + --global_vertex_index; + else global_vertex_index = numbers::invalid_unsigned_int; } }