From 07a97f41d317edbb1970940c3af125302780aef9 Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Thu, 30 Sep 2021 13:15:21 +0200 Subject: [PATCH] Fix: ../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:411:21: warning: comparison of integer expressions of different signedness: 'std::vector::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] --- src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp index c25f76c61..603353dd7 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp @@ -424,7 +424,7 @@ ModelVolume *GLGizmoSimplify::get_selected_volume(int *object_idx_ptr) const if (object_idx_ptr != nullptr) *object_idx_ptr = object_idx; if (object_idx < 0) return nullptr; ModelObjectPtrs &objs = wxGetApp().plater()->model().objects; - if (objs.size() <= object_idx) return nullptr; + if (static_cast(objs.size()) <= object_idx) return nullptr; ModelObject *obj = objs[object_idx]; if (obj->volumes.empty()) return nullptr; return obj->volumes.front();