Try to fix warnings (which I cannot reproduce locally)

This commit is contained in:
Andreas Fabri 2018-11-26 10:00:23 +01:00
parent 994b1aa9c6
commit 047938e068
2 changed files with 7 additions and 4 deletions

View File

@ -366,7 +366,7 @@ private:
}
edge_stack stack;
number_of_edges = num_edges(m_intrinsic_tm);
std::size_t number_of_edges = num_edges(m_intrinsic_tm);
edge_lengths.resize(number_of_edges);
mark_edges.resize(number_of_edges, 1);
edge_id_map = get(Edge_property_tag(), m_intrinsic_tm);
@ -433,7 +433,6 @@ private:
HalfedgeCoordinateMap hcm;
Edge_id_map edge_id_map;
int number_of_edges;
std::vector<double> edge_lengths;
std::vector<int> mark_edges;
public:

View File

@ -195,8 +195,10 @@ public:
///
/// \pre 0 <= i < row_dimension().
/// \pre 0 <= j < column_dimension().
void add_coef(int i, int j, T val)
void add_coef(std::size_t i_, std::size_t j_, T val)
{
int i = static_cast<int>(i_);
int j = static_cast<int>(j_);
if(m_is_symmetric && (j > i))
return;
@ -218,8 +220,10 @@ public:
///
/// \pre 0 <= i < row_dimension().
/// \pre 0 <= j < column_dimension().
NT get_coef (unsigned int i, unsigned int j) const
NT get_coef (std::size_t i_, std::size_t j_) const
{
int i = static_cast<int>(i_);
int j = static_cast<int>(j_);
CGAL_precondition(i < row_dimension());
CGAL_precondition(j < column_dimension());