protect min and max

This commit is contained in:
Guillaume Damiand 2023-12-14 08:26:55 +01:00
parent d7720073e2
commit b7ed4f249e
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ struct Colored_faces_given_height:
{ m_min_z=sm.point(vi).z(); m_max_z=m_min_z; first=false; }
else
{
m_min_z=std::min(m_min_z, sm.point(vi).z());
m_max_z=std::max(m_max_z, sm.point(vi).z());
m_min_z=(std::min)(m_min_z, sm.point(vi).z());
m_max_z=(std::max)(m_max_z, sm.point(vi).z());
}
}
}