From 8be67bc4d6703a8d1da29992c97563510f97864c Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 18 Jan 2022 08:20:04 +0100 Subject: [PATCH] Fixed warnings --- src/slic3r/GUI/Plater.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 38789cd3f1..f3b5b144ae 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1246,7 +1246,7 @@ void Sidebar::show_info_sizer() int obj_idx = selection.get_object_idx(); #if ENABLE_WIPETOWER_OBJECTID_1000_REMOVAL - if (m_mode < comExpert || objects.empty() || obj_idx < 0 || objects.size() <= obj_idx || + if (m_mode < comExpert || objects.empty() || obj_idx < 0 || int(objects.size()) <= obj_idx || #else if (m_mode < comExpert || objects.empty() || obj_idx < 0 || obj_idx == 1000 || #endif // ENABLE_WIPETOWER_OBJECTID_1000_REMOVAL @@ -2871,7 +2871,7 @@ int Plater::priv::get_selected_object_idx() const { int idx = get_selection().get_object_idx(); #if ENABLE_WIPETOWER_OBJECTID_1000_REMOVAL - return (0 <= idx && idx < model.objects.size()) ? idx : -1; + return (0 <= idx && idx < int(model.objects.size())) ? idx : -1; #else return ((0 <= idx) && (idx < 1000)) ? idx : -1; #endif // ENABLE_WIPETOWER_OBJECTID_1000_REMOVAL