summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2020-04-29 19:34:54 +0200
committerMarc Glisse <marc.glisse@inria.fr>2020-04-29 19:34:54 +0200
commit31080642b9029446efe85dabcf49145d9a7519b6 (patch)
treec4ffa4864b51d48b0d361f58074517c7db986c01
parent0fb22e4c499b665ad505e5d9d2c325f7561f69c4 (diff)
Make size() return size_t
It probably returns the biggest integer used in the whole module, it doesn't make sense that it uses a smaller type.
-rw-r--r--src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex_base.h b/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex_base.h
index 1eb77c9c..e6a78a6d 100644
--- a/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex_base.h
+++ b/src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex_base.h
@@ -197,7 +197,7 @@ class Bitmap_cubical_complex_base {
/**
* Returns number of all cubes in the data structure.
**/
- inline unsigned size() const { return this->data.size(); }
+ inline std::size_t size() const { return this->data.size(); }
/**
* Writing to stream operator. By using it we get the values T of cells in order in which they are stored in the