diff --git a/Mesh_3/include/CGAL/Mesh_3/features_detection/postprocess_weights.h b/Mesh_3/include/CGAL/Mesh_3/features_detection/postprocess_weights.h index b3740cde1ab..5a975b14473 100644 --- a/Mesh_3/include/CGAL/Mesh_3/features_detection/postprocess_weights.h +++ b/Mesh_3/include/CGAL/Mesh_3/features_detection/postprocess_weights.h @@ -32,7 +32,7 @@ namespace internal { { using CGAL::IMAGEIO::static_evaluate; - if (i < 0 || j < 0 || k < 0) + if (i == std::size_t(-1) || j == std::size_t(-1) || k == std::size_t(-1)) return; else if (i > img.xdim() - 1 || j > img.ydim() - 1 || k > img.zdim() - 1) return;