From b35f5780dc01a52f8c19e47707462308cb911a4a Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 4 Sep 2017 10:14:56 +0200 Subject: [PATCH] Fixed compilation on OSX & LInux --- xs/src/libslic3r/GCode/WipeTowerPrusaMM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xs/src/libslic3r/GCode/WipeTowerPrusaMM.cpp b/xs/src/libslic3r/GCode/WipeTowerPrusaMM.cpp index 4e2921efd..d42bf25dc 100644 --- a/xs/src/libslic3r/GCode/WipeTowerPrusaMM.cpp +++ b/xs/src/libslic3r/GCode/WipeTowerPrusaMM.cpp @@ -381,7 +381,7 @@ WipeTower::ToolChangeResult WipeTowerPrusaMM::prime(float first_layer_height, st // Minimum wipe area is 5mm wide. //FIXME calculate the purge_lines_width precisely. float purge_lines_width = 1.3f; - wipe_area = std::max(5.f, m_wipe_area - floor(e_length / m_wipe_tower_width) * dy - purge_lines_width); + wipe_area = std::max(5.f, m_wipe_area - float(floor(e_length / m_wipe_tower_width)) * dy - purge_lines_width); } this->set_layer(first_layer_height, first_layer_height, tools.size(), true, false);