From fdf6860dd44ff146536ecba4c4de33501e7971ec Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Wed, 21 Apr 2010 09:58:27 +0000 Subject: [PATCH] size methods should return size_type not int [[Imported from SVN: r5978]] --- dune/common/bitsetvector.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/common/bitsetvector.hh b/dune/common/bitsetvector.hh index e7b1cef50..98df13945 100644 --- a/dune/common/bitsetvector.hh +++ b/dune/common/bitsetvector.hh @@ -513,7 +513,7 @@ namespace Dune { } /** \brief Return the number of blocks */ - int size() const + size_type size() const { return BlocklessBaseClass::size()/block_size; } @@ -574,7 +574,7 @@ namespace Dune { } //! Returns the number of set bits, while each block is masked with 1<<i - int countmasked(int j) const + size_type countmasked(int j) const { size_type n = 0; size_type blocks = size(); -- GitLab