diff --git a/src/libslic3r/Arrange.cpp b/src/libslic3r/Arrange.cpp index 6875ed216b..6aeea356a3 100644 --- a/src/libslic3r/Arrange.cpp +++ b/src/libslic3r/Arrange.cpp @@ -1,6 +1,7 @@ #include "Arrange.hpp" #include "Print.hpp" #include "BoundingBox.hpp" +#include "libslic3r.h" #include #include @@ -337,8 +338,8 @@ static double fixed_overfit_topright_sliding(const std::tuple &resu Box pilebb = std::get<1>(result); auto shift = binbb.maxCorner() - pilebb.maxCorner(); - shift.x() = std::max(0, shift.x()); // do not allow left shift - shift.y() = std::max(0, shift.y()); // do not allow bottom shift + shift.x() = std::max((coord_t)0, shift.x()); // do not allow left shift + shift.y() = std::max((coord_t)0, shift.y()); // do not allow bottom shift pilebb.minCorner() += shift; pilebb.maxCorner() += shift;