From 8bdba67281b64a52bc9f68fe89f467b70219545c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 26 Mar 2021 09:39:15 +0100 Subject: [PATCH] Fix double -> int loss --- Distance_3/test/Distance_3/test_distance_3.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Distance_3/test/Distance_3/test_distance_3.cpp b/Distance_3/test/Distance_3/test_distance_3.cpp index 3d219582b6e..4354d158286 100644 --- a/Distance_3/test/Distance_3/test_distance_3.cpp +++ b/Distance_3/test/Distance_3/test_distance_3.cpp @@ -212,16 +212,16 @@ private: // coplanar segments (hardcoded) double z = std::sqrt(2.); - P p0 = p(-1, 0, z); - P p1 = p( 1, 0, z); + P p0{-1, 0, z}; + P p1{ 1, 0, z}; // translations of (0, -1, z) -- (0, 1, z) to have all variations of x&y (<0, [0;1]; >1) in the code for(int j=-2;j<4; j+=2) { for(int k=-3;k<3; k+=2) { - P p2 = p(j, k, z); - P p3 = p(j, k+2, z); + P p2{j, k, z}; + P p3{j, k+2, z}; // to explicit the expected distances if(j == -2 && k == -3)