From 21c76d2e2e343afeef2d08096fd21b4b964b126d Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 10 Feb 2023 12:25:49 +0100 Subject: [PATCH] Fixed a typo in assert --- src/libslic3r/Geometry/ConvexHull.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/Geometry/ConvexHull.cpp b/src/libslic3r/Geometry/ConvexHull.cpp index 015d47de69..b8bf5eb696 100644 --- a/src/libslic3r/Geometry/ConvexHull.cpp +++ b/src/libslic3r/Geometry/ConvexHull.cpp @@ -398,7 +398,7 @@ bool inside_convex_polygon(const std::pair, std::vectorx()); assert(pt.x() == it_top->x()); - assert(it_bottom->y() <= pt.y() <= it_top->y()); + assert(it_bottom->y() <= pt.y() && pt.y() <= it_top->y()); return pt.y() >= it_bottom->y() && pt.y() <= it_top->y(); }