Skip to content

Commit

Permalink
Update src/Core/Internal/EntitiesHelper.cpp
Browse files Browse the repository at this point in the history
replaced DBL_MAX and MIN with std::numeric_limits
  • Loading branch information
nicolaslg authored Jan 31, 2025
1 parent b26eece commit b701336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Internal/EntitiesHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,8 @@ double EntitiesHelper::angle(const Utils::Entity* cec, const Utils::Entity* ce1,
/*----------------------------------------------------------------------------*/
bool EntitiesHelper::getBounds (const std::vector<Utils::Entity*>& entities, double bounds [6])
{
bounds [0] = bounds [2] = bounds [4] = DBL_MAX;
bounds [1] = bounds [3] = bounds [5] = -DBL_MAX;
bounds [0] = bounds [2] = bounds [4] = std::numeric_limits<double>::max();
bounds [1] = bounds [3] = bounds [5] = std::numeric_limits<double>::min();
if (true == entities.empty ( ))
return false;

Expand Down

0 comments on commit b701336

Please sign in to comment.