From e38dbfe3a3c1a54ffd4df1e677e2b4b97a4221e0 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Mon, 10 Feb 2020 13:44:33 +0100 Subject: [PATCH] Fix test for spheres resizing. --- Polyhedron/demo/Polyhedron/Scene_spheres_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polyhedron/demo/Polyhedron/Scene_spheres_item.cpp b/Polyhedron/demo/Polyhedron/Scene_spheres_item.cpp index dbdb9e4dd9d..c26dfd45bec 100644 --- a/Polyhedron/demo/Polyhedron/Scene_spheres_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_spheres_item.cpp @@ -241,7 +241,7 @@ void Scene_spheres_item::drawEdges(Viewer_interface *viewer) const } void Scene_spheres_item::add_sphere(const Sphere &sphere, std::size_t index, CGAL::Color color) { - if(index > d->spheres.size()-1) + if((int)index > (int)d->spheres.size() - 1) d->spheres.resize(index+1); d->spheres[index].push_back(std::make_pair(sphere, color));