From: kronbichler Date: Mon, 27 Jun 2011 16:34:39 +0000 (+0000) Subject: Fix memory consumption of std::vector with more than 4G. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab474b5e8b00559e3b89b064331cda34ca4f45eb;p=dealii-svn.git Fix memory consumption of std::vector with more than 4G. git-svn-id: https://svn.dealii.org/trunk@23871 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/memory_consumption.h b/deal.II/include/deal.II/base/memory_consumption.h index 7faef9028d..ea2757024f 100644 --- a/deal.II/include/deal.II/base/memory_consumption.h +++ b/deal.II/include/deal.II/base/memory_consumption.h @@ -514,7 +514,7 @@ namespace MemoryConsumption template std::size_t memory_consumption (const std::vector &v) { - unsigned int mem = sizeof(std::vector); + std::size_t mem = sizeof(std::vector); const unsigned int n = v.size(); for (unsigned int i=0; i std::size_t memory_consumption (const T (&v)[N]) { - unsigned int mem = 0; + std::size_t mem = 0; for (unsigned int i=0; i