From 3a507b8603ab2ac951ca2c03f276525edd9f9174 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Sun, 1 Dec 2024 09:46:40 -0600 Subject: [PATCH] fix: static_cast(sqrt(...)) to avoid c++-narrowing warning/error (again) (#1682) ### Briefly, what does this PR introduce? #1675 again see there. --- src/algorithms/tracking/TrackPropagation.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/tracking/TrackPropagation.cc b/src/algorithms/tracking/TrackPropagation.cc index bafe82f42f..6ad4e98138 100644 --- a/src/algorithms/tracking/TrackPropagation.cc +++ b/src/algorithms/tracking/TrackPropagation.cc @@ -295,7 +295,7 @@ void TrackPropagation::propagateToSurfaceList( // time const float time{static_cast(parameter(Acts::eBoundTime))}; - const float timeError{sqrt(static_cast(covariance(Acts::eBoundTime, Acts::eBoundTime)))}; + const float timeError{static_cast(sqrt(covariance(Acts::eBoundTime, Acts::eBoundTime)))}; // Direction const float theta(parameter[Acts::eBoundTheta]);