Skip to content

Commit

Permalink
Fixed bug in MaxInvalidRectD (C++) (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed Mar 20, 2023
1 parent ccff8d6 commit e9eea4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CPP/Clipper2Lib/include/clipper2/clipper.core.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ namespace Clipper2Lib
const double min_coord = static_cast<double>(MIN_COORD);

static const double MAX_DBL = (std::numeric_limits<double>::max)();
static const double MIN_DBL = (std::numeric_limits<double>::min)();

static void DoError(int error_code)
{
Expand Down Expand Up @@ -340,7 +339,7 @@ namespace Clipper2Lib
INT64_MAX, INT64_MAX, INT64_MIN, INT64_MIN);

static const RectD MaxInvalidRectD = RectD(
MAX_DBL, MAX_DBL, MIN_DBL, MIN_DBL);
MAX_DBL, MAX_DBL, -MAX_DBL, -MAX_DBL);

inline Rect64 GetBounds(const Path64& path)
{
Expand Down

0 comments on commit e9eea4c

Please sign in to comment.