Skip to content

Commit 896dae4

Browse files
committed
WipeTowerIntegration.hpp:48: fix warning about comparing different int types
1 parent 3d42112 commit 896dae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libslic3r/GCode/WipeTowerIntegration.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class WipeTowerIntegration {
4545
std::string finalize(GCodeGenerator &gcodegen);
4646
std::vector<float> used_filament_length() const;
4747
std::optional<WipeTower::ToolChangeResult> get_toolchange(std::size_t index, bool ignore_sparse) const {
48-
if (m_layer_idx >= m_tool_changes.size()) {
48+
if (static_cast<std::size_t>(m_layer_idx) >= m_tool_changes.size()) {
4949
return std::nullopt;
5050
}
5151
if(

0 commit comments

Comments
 (0)