From 02a3d2fca39e7b24c0a227b88a5cf45fa1f22dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C5=BEenan=20Zuki=C4=87?= Date: Wed, 6 Nov 2024 11:06:34 -0500 Subject: [PATCH] COMP: Fix compile error when ITK_USE_FLOAT_SPACE_PRECISION=ON --- Modules/Core/Common/test/itkAnatomicalOrientationGTest.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Core/Common/test/itkAnatomicalOrientationGTest.cxx b/Modules/Core/Common/test/itkAnatomicalOrientationGTest.cxx index f09b5fcf0e8..a77a3dfdf8b 100644 --- a/Modules/Core/Common/test/itkAnatomicalOrientationGTest.cxx +++ b/Modules/Core/Common/test/itkAnatomicalOrientationGTest.cxx @@ -168,9 +168,9 @@ TEST(AnatomicalOrientation, ConvertDirectionToPositiveEnum) d(0, 2) = 1; EXPECT_EQ(OE::SPL, AnatomicalOrientation(d)); - const double data[] = { 0.5986634407395047, 0.22716302314740483, -0.768113953548866, - 0.5627936241740271, 0.563067040943212, 0.6051601804419384, - 0.5699696670095713, -0.794576911518317, 0.20924175102261847 }; + const itk::SpacePrecisionType data[] = { 0.5986634407395047, 0.22716302314740483, -0.768113953548866, + 0.5627936241740271, 0.563067040943212, 0.6051601804419384, + 0.5699696670095713, -0.794576911518317, 0.20924175102261847 }; ImageType::DirectionType::InternalMatrixType m{ data }; d.GetVnlMatrix() = m; EXPECT_EQ(OE::PIR, AnatomicalOrientation(d));