Skip to content

Commit bea5137

Browse files
committed
Remove a warning
1 parent e459862 commit bea5137

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Combinatorial_map/test/Combinatorial_map/Combinatorial_map_3_test.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ bool check_number_of_cells_3(CMap& cmap, unsigned int nbv, unsigned int nbe,
6363
template<typename CMap>
6464
struct Count_nb_darts
6565
{
66-
Count_nb_darts(unsigned int &nb) : m_nb(nb)
66+
Count_nb_darts(std::size_t &nb) : m_nb(nb)
6767
{}
6868

6969
void operator() (const typename CMap::Dart&)
7070
{ ++m_nb; }
7171
protected:
72-
unsigned int& m_nb;
72+
std::size_t& m_nb;
7373
};
7474

7575
template<class Map, class Functor>
@@ -560,7 +560,7 @@ bool test3D()
560560
}
561561

562562
{
563-
unsigned int nbtest=0;
563+
std::size_t nbtest=0;
564564
cout<<"std::for_each iterators : ";
565565
std::for_each(map.darts().begin(), map.darts().end(),
566566
Count_nb_darts<Map>(nbtest));
@@ -582,7 +582,7 @@ bool test3D()
582582
Count_nb_darts<Map>(nbtest));
583583
std::cout<<nbtest<<", comparison using size(): ";
584584

585-
unsigned int nbtest2 = map.darts().size()+
585+
std::size_t nbtest2 = map.darts().size()+
586586
map.template darts_of_orbit<1,2>(it1).size()+
587587
map.template darts_of_cell<3>(it1).size()+
588588
map.template darts_of_involution<2>(it1).size()+

0 commit comments

Comments
 (0)