Fix VC++ max

This commit is contained in:
Andreas Fabri 2024-03-05 07:27:57 +00:00 committed by Mael Rouxel-Labbé
parent 45777165eb
commit ff0d56db46
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ bool cell_position_QEM(const typename Domain::cell_descriptor& c,
#endif
FT x_min, y_min, z_min, x_max, y_max, z_max;
x_min = y_min = z_min = std::numeric_limits<FT>::max(); // @todo domain.span()
x_min = y_min = z_min = (std::numeric_limits<FT>::max)(); // @todo domain.span()
x_max = y_max = z_max = std::numeric_limits<FT>::lowest();
FT x(0), y(0), z(0);

View File

@ -950,7 +950,7 @@ private:
for(int r=0; r<cnt_sz; ++r)
{
unsigned int index = -1;
FT dist = std::numeric_limits<FT>::max();
FT dist = (std::numeric_limits<FT>::max)();
unsigned int ci = get_c(i, r, c_);
const FT u_edge = e_vert(ci, 0);
const FT v_edge = e_vert(ci, 1);