]> https://gitweb.dealii.org/ - dealii.git/commit
Use AlignedVector::size_type in TableBase::position
authorMichael F. Herbst <info@michael-herbst.com>
Mon, 23 Feb 2015 13:59:05 +0000 (14:59 +0100)
committerMichael F. Herbst <info@michael-herbst.com>
Mon, 23 Feb 2015 13:59:05 +0000 (14:59 +0100)
commitb8df41cb4b6024d04748085355276a272baefc67
treea7fc22ba255be89117fed42a9839869ddbae1fc6
parent51e8e70b65dafaea3732d62128cfbcdd97c6e751
Use AlignedVector::size_type in TableBase::position

Use AlignedVector<T>::size_type as the integer type to carry out the
calculation of the position of the element indicated by the
TableIndices<N> object.

This has the advantage that a potential integer overflow for Tables
with sizes less than max long int in each dimension, but with more than
max long int entries is prevented.
include/deal.II/base/table.h

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.