From a690f7825cb789c2c644ac39a506c3ced3310700 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 27 Jan 2022 12:45:03 +0100 Subject: [PATCH] Fixed warning --- src/slic3r/GUI/GCodeViewer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GCodeViewer.cpp b/src/slic3r/GUI/GCodeViewer.cpp index 4e7dbaf1a..75ebd9255 100644 --- a/src/slic3r/GUI/GCodeViewer.cpp +++ b/src/slic3r/GUI/GCodeViewer.cpp @@ -1653,7 +1653,7 @@ void GCodeViewer::load_toolpaths(const GCodeProcessorResult& gcode_result) }; auto extract_move_id = [&biased_seams_ids](size_t id) { - size_t new_id = -1; + size_t new_id = size_t(-1); auto it = std::lower_bound(biased_seams_ids.begin(), biased_seams_ids.end(), id); if (it == biased_seams_ids.end()) new_id = id + biased_seams_ids.size(); @@ -1663,7 +1663,7 @@ void GCodeViewer::load_toolpaths(const GCodeProcessorResult& gcode_result) else if (it != biased_seams_ids.begin()) new_id = id + std::distance(biased_seams_ids.begin(), it); } - return (new_id == -1) ? id : new_id; + return (new_id == size_t(-1)) ? id : new_id; }; const size_t vertex_size_floats = t_buffer.vertices.vertex_size_floats();