From b156ae6a1b37c60c1e192a7b7b3f0a06badd12d7 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Fri, 12 Jul 2019 21:55:20 +0200 Subject: [PATCH] Move store outside the loop. Looks like a typo kind of mistake: the value was computed and stored repeatedly in the inner loop instead of once in the outer loop... --- NewKernel_d/include/CGAL/NewKernel_d/Types/Weighted_point.h | 3 +-- .../include/CGAL/NewKernel_d/function_objects_cartesian.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/NewKernel_d/include/CGAL/NewKernel_d/Types/Weighted_point.h b/NewKernel_d/include/CGAL/NewKernel_d/Types/Weighted_point.h index 8f0a80280b1..815766787b6 100644 --- a/NewKernel_d/include/CGAL/NewKernel_d/Types/Weighted_point.h +++ b/NewKernel_d/include/CGAL/NewKernel_d/Types/Weighted_point.h @@ -186,11 +186,10 @@ template struct Power_center : Store_kernel { for(i=0; ++f!=e; ++i) { WPoint const& wp=*f; Point const& p=pdw(wp); - FT const& np = sdo(p) - pw(wp); for(int j=0;j struct Construct_circumcenter : Store_kernel { Point const& p=*f; for(int j=0;j