diff --git a/Polyhedron/demo/Polyhedron/Scene_spheres_item.cpp b/Polyhedron/demo/Polyhedron/Scene_spheres_item.cpp index 80bbed25f1d..dbdb9e4dd9d 100644 --- a/Polyhedron/demo/Polyhedron/Scene_spheres_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_spheres_item.cpp @@ -72,7 +72,7 @@ void Scene_spheres_item_priv::pick(int& id) const if(!pickable) return; - if(id >= spheres.size()) + if(id >= static_cast(spheres.size())) { id = -1; }