From 4be918b51b493e92d400062931d768892ee1fd3f Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 18 Apr 2023 17:10:41 +0200 Subject: [PATCH] it's forbidden to compare (size_t < 0) --- .../CGAL/Mesh_3/features_detection/postprocess_weights.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;