From 3d71790cbcf9e94ea3184438f9256a6785ed6430 Mon Sep 17 00:00:00 2001 From: Mael Date: Thu, 5 Oct 2023 14:56:25 +0200 Subject: [PATCH] Protect min/max with parentheses Co-authored-by: Andreas Fabri --- .../test_edge_collapse_stability.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_stability.cpp b/Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_stability.cpp index f2efb2182448..1a6a2786c6db 100644 --- a/Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_stability.cpp +++ b/Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_stability.cpp @@ -44,8 +44,8 @@ int main(int argc, char** argv) CGAL::Iso_cuboid_3 bbox(CGAL::Polygon_mesh_processing::bbox(mesh)); // scale a bit the bounding box bbox, because the kernel is SC - bbox = { bbox.min() - 0.01 * (bbox.max() - bbox.min()), - bbox.max() + 0.01 * (bbox.max() - bbox.min()) }; + bbox = { (bbox.min)() - 0.01 * ((bbox.max)() - (bbox.min)()), + (bbox.max)() + 0.01 * ((bbox.max)() - (bbox.min)()) }; std::cout << "Bbox: " << bbox << std::endl;