From 31080642b9029446efe85dabcf49145d9a7519b6 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Wed, 29 Apr 2020 19:34:54 +0200 Subject: 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. --- src/Bitmap_cubical_complex/include/gudhi/Bitmap_cubical_complex_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3