diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2021-01-29 09:39:27 +0300 |
---|---|---|
committer | enricoturri1966 <enricoturri@seznam.cz> | 2021-04-12 15:09:30 +0300 |
commit | 51dfccf1157c566b1cbb8891ecedefaa1e79269d (patch) | |
tree | 7af51e2c2bd5883de6dcc20ccc975dec40ae570b /src/slic3r/GUI/GLCanvas3D.cpp | |
parent | 6f85a7d3fd1f9581652e94f4528ac5d418f6bcd3 (diff) |
Fixing GCC warnings 3
Diffstat (limited to 'src/slic3r/GUI/GLCanvas3D.cpp')
-rw-r--r-- | src/slic3r/GUI/GLCanvas3D.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 388db4a27..c4e836daf 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -5822,7 +5822,7 @@ void GLCanvas3D::_load_print_object_toolpaths(const PrintObject& print_object, c int get_color_idx_for_tool_change(std::vector<CustomGCode::Item>::const_iterator it, const int extruder) const { const int current_extruder = it->extruder == 0 ? extruder : it->extruder; - if (number_tools() == extruders_cnt + 1) // there is no one "M600" + if (number_tools() == size_t(extruders_cnt + 1)) // there is no one "M600" return std::min<int>(extruders_cnt - 1, std::max<int>(current_extruder - 1, 0)); auto it_n = it; |