From: Wolfgang Bangerth Date: Wed, 3 Jul 2013 12:56:01 +0000 (+0000) Subject: Count down, not up. X-Git-Tag: v8.0.0~193 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52c06952a1ede848f7257686cdfef0eb911bc747;p=dealii.git Count down, not up. git-svn-id: https://svn.dealii.org/trunk@29925 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/tensor.h b/deal.II/include/deal.II/base/tensor.h index eaceaee41b..bb5a41193f 100644 --- a/deal.II/include/deal.II/base/tensor.h +++ b/deal.II/include/deal.II/base/tensor.h @@ -625,7 +625,7 @@ Tensor::unrolled_to_component_indices(const unsigned int i) TableIndices indices; unsigned int remainder = i; - for (int r=rank_-1; r>=0; ++r) + for (int r=rank_-1; r>=0; --r) { indices[r] = (remainder % dim); remainder /= dim;