]> https://gitweb.dealii.org/ - dealii.git/commit
Avoid a warning. 2472/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Apr 2016 21:07:49 +0000 (16:07 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Apr 2016 21:10:30 +0000 (16:10 -0500)
commite4e81b414956255410c33b15112e5d57df4ad177
treeeb6d5d8f059d466ec7767cc58f194d2d10029d02
parentd584ae303d53057b5ea91591f1c78cacc3d1cd7b
Avoid a warning.

This fixes a warning introduced in #2449. There, @drwells had asked me
why I wrote
        for (std::size_t i=0; i!=N; ++i)
when I could have written
        for (std::size_t i=0; i<N; ++i)
I didn't remember and changed it to the latter, which did not warn on
my laptop but does now on the compute server. The reason is that N is
of type std::size_t, which turns out to be unsigned, and so warns if
we happen to have N==0. This patch fixes the issue.
include/deal.II/base/memory_consumption.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.